|
@@ -26,7 +26,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
clearable
|
|
clearable
|
|
|
v-model="form.projectName"
|
|
v-model="form.projectName"
|
|
|
- @clear="clearContrcat"
|
|
|
|
|
|
|
+ @clear="clearContrcat('project')"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
style="width: calc(100% - 80px)"
|
|
style="width: calc(100% - 80px)"
|
|
|
/>
|
|
/>
|
|
@@ -857,13 +857,15 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//清除合同
|
|
//清除合同
|
|
|
- clearContrcat() {
|
|
|
|
|
|
|
+ clearContrcat(type) {
|
|
|
|
|
+ if(type=='project'&&!this.form.projectId){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.clearing = true;
|
|
this.clearing = true;
|
|
|
let {
|
|
let {
|
|
|
id,
|
|
id,
|
|
|
saleType,
|
|
saleType,
|
|
|
saleTypeName,
|
|
saleTypeName,
|
|
|
- // deliveryDate,
|
|
|
|
|
orderFiles,
|
|
orderFiles,
|
|
|
remark
|
|
remark
|
|
|
} = this.form;
|
|
} = this.form;
|
|
@@ -878,7 +880,7 @@
|
|
|
this.projectData = {};
|
|
this.projectData = {};
|
|
|
|
|
|
|
|
this.$store.commit('order/setContractId', '');
|
|
this.$store.commit('order/setContractId', '');
|
|
|
- this.$refs.inventoryTable.putTableValue([]);
|
|
|
|
|
|
|
+ this.$refs.inventoryTable&&this.$refs.inventoryTable.putTableValue([]);
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.clearing = false;
|
|
this.clearing = false;
|