Browse Source

supplierCode

intex
yufei_wang 2 days ago
parent
commit
f17f151011
  1. 14
      src/components/ImportForm/src/ImportSupplierMoldCostForm.vue

14
src/components/ImportForm/src/ImportSupplierMoldCostForm.vue

@ -12,7 +12,7 @@
<el-col :span="12">
<el-form-item label="客户代码">
<el-select
v-model="queryParams.customerCode"
v-model="queryParams.supplierCode"
placeholder="请选择客户代码"
clearable
>
@ -41,8 +41,8 @@
importUrl +
'?yearsMonthStr=' +
queryParams.yearsMonthStr +
'&customerCode=' +
queryParams.customerCode +
'&supplierCode=' +
queryParams.supplierCode +
'&file=' +
file +
'&updatePart=' +
@ -292,15 +292,15 @@ const verifyData = async () => {
message.error('请选择年月')
return
}
if (queryParams.customerCode==''||queryParams.customerCode==null) {
message.error('请选择客户代码')
if (queryParams.supplierCode==''||queryParams.supplierCode==null) {
message.error('请选择供应商代码')
return
}
if (fileList.value.length == 0) {
message.error('请上传文件')
return
}
const data = await SuppliperMoldCostMainApi.verifyDataExist(queryParams.yearsMonthStr,queryParams.customerCode);
const data = await SuppliperMoldCostMainApi.verifyDataExist(queryParams.yearsMonthStr,queryParams.supplierCode);
console.log('data',data)
if(data.status==0){
submitForm();
@ -430,7 +430,7 @@ const importTemplate = () => {
}
const customerList = ref();
const queryParams = reactive({
customerCode: '',
supplierCode: '',
yearsMonthStr: '',
})

Loading…
Cancel
Save