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