|
@ -159,6 +159,11 @@ const clearSearchInput = (formField) => { |
|
|
column: 'itemCode', |
|
|
column: 'itemCode', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: basicFormRef.value.formRef.formModel.lightItemCode |
|
|
value: basicFormRef.value.formRef.formModel.lightItemCode |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
@ -211,7 +216,16 @@ const clearSearchInput = (formField) => { |
|
|
const params2 = { |
|
|
const params2 = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [ |
|
|
filters: [ |
|
|
{ column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode } |
|
|
{ |
|
|
|
|
|
column: 'itemCode', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: basicFormRef.value.formRef.formModel.itemCode |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
], |
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
@ -258,7 +272,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
setV['purchaseReceiptNumber'] = '' |
|
|
setV['purchaseReceiptNumber'] = '' |
|
|
const supplierParams = { |
|
|
const supplierParams = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [{ column: 'code', action: '==', value: val[0].supplierCode }], |
|
|
filters: [ |
|
|
|
|
|
{ column: 'code', action: '==', value: val[0].supplierCode }, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
|
sort: '' |
|
|
sort: '' |
|
@ -300,7 +321,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
setV['remainingAmount'] = 0 |
|
|
setV['remainingAmount'] = 0 |
|
|
const params2 = { |
|
|
const params2 = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [{ column: 'itemCode', action: '==', value: val[0].code }], |
|
|
filters: [ |
|
|
|
|
|
{ column: 'itemCode', action: '==', value: val[0].code }, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
|
sort: '' |
|
|
sort: '' |
|
@ -361,7 +389,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
|
|
|
|
|
const supplieritemParams = { |
|
|
const supplieritemParams = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }], |
|
|
filters: [ |
|
|
|
|
|
{ column: 'itemCode', action: '==', value: val[0].itemCode }, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
|
sort: '' |
|
|
sort: '' |
|
@ -380,7 +415,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
}) |
|
|
}) |
|
|
const itembasicParams = { |
|
|
const itembasicParams = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [{ column: 'code', action: '==', value: val[0].itemCode }], |
|
|
filters: [ |
|
|
|
|
|
{ column: 'code', action: '==', value: val[0].itemCode }, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
|
sort: '' |
|
|
sort: '' |
|
@ -407,7 +449,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
setV['remainingAmount'] = 0 |
|
|
setV['remainingAmount'] = 0 |
|
|
const params2 = { |
|
|
const params2 = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }], |
|
|
filters: [ |
|
|
|
|
|
{ column: 'itemCode', action: '==', value: val[0].itemCode }, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
|
sort: '' |
|
|
sort: '' |
|
@ -509,7 +558,12 @@ const onChange = (field, e) => { |
|
|
const paramsCustomer = { |
|
|
const paramsCustomer = { |
|
|
by: 'ASC', |
|
|
by: 'ASC', |
|
|
filters: [ |
|
|
filters: [ |
|
|
{ column: 'code', action: '==', value: basicFormRef.value.formRef.formModel.supplierCode } |
|
|
{ column: 'code', action: '==', value: basicFormRef.value.formRef.formModel.supplierCode }, |
|
|
|
|
|
{ |
|
|
|
|
|
column: 'available', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: 'TRUE' |
|
|
|
|
|
} |
|
|
], |
|
|
], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 500, |
|
|
pageSize: 500, |
|
@ -690,10 +744,10 @@ const formsSuccess = async (formType, data) => { |
|
|
// message.error('数量不能为0') |
|
|
// message.error('数量不能为0') |
|
|
// return |
|
|
// return |
|
|
// } |
|
|
// } |
|
|
if (!data.standardCostPrice) { |
|
|
// if (!data.standardCostPrice) { |
|
|
message.error('标准成本价格不能为0或空') |
|
|
// message.error('标准成本价格不能为0或空') |
|
|
return |
|
|
// return |
|
|
} |
|
|
// } |
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
|
|
|
|
|
|