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

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

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

Loading…
Cancel
Save