Browse Source

q3缺陷位置可搜索,金额重置

hella_online_20240816
zhang_li 3 months ago
parent
commit
9c0efd76a0
  1. 2
      src/views/qms/inspectionQ3/index.vue
  2. 5
      src/views/qms/inspectionQ3/inspectionQ3.data.ts

2
src/views/qms/inspectionQ3/index.vue

@ -169,6 +169,7 @@ const setTableFormsValues = async (val, index1) => {
const newRow = JSON.parse(JSON.stringify({ ...tableForm, ...val[index1] })) const newRow = JSON.parse(JSON.stringify({ ...tableForm, ...val[index1] }))
newRow['itemCode'] = val[index1]['itemCode'] newRow['itemCode'] = val[index1]['itemCode']
newRow['uom'] = val[index1]['uom'] newRow['uom'] = val[index1]['uom']
newRow['qty'] = 0
newRow.defectLocation = val[index1]['productionLineCode'] newRow.defectLocation = val[index1]['productionLineCode']
await ProductionlineitemApi.selectItemCodeToProductionLineCode(val[index1].itemCode).then( await ProductionlineitemApi.selectItemCodeToProductionLineCode(val[index1].itemCode).then(
(res) => { (res) => {
@ -193,7 +194,6 @@ const setTableFormsValues = async (val, index1) => {
newRow['amount']=(parseFloat(newRow['qty']) * parseFloat(priceObj.value.price)).toFixed(6) newRow['amount']=(parseFloat(newRow['qty']) * parseFloat(priceObj.value.price)).toFixed(6)
} }
}) })
newRow['qty'] = 0
tableData.value.push(newRow) tableData.value.push(newRow)
console.log( tableData.value) console.log( tableData.value)
index1++ index1++

5
src/views/qms/inspectionQ3/inspectionQ3.data.ts

@ -436,16 +436,17 @@ export const InspectionQ3Detail = useCrudSchemas(
form: { form: {
component: 'Select', component: 'Select',
componentProps: { componentProps: {
filterable: true,
options: [], options: [],
optionsAlias: { optionsAlias: {
labelField: 'productionLineName', labelField: 'productionLineName',
valueField: 'productionLineCode' valueField: 'productionLineCode'
}, }
filterable: true
} }
}, },
tableForm: { tableForm: {
type: 'Select', type: 'Select',
filterable: true,
valueField: 'productionLineName', valueField: 'productionLineName',
labelField: 'productionLineCode' labelField: 'productionLineCode'
} }

Loading…
Cancel
Save