Commit fde723ed authored by renjintao's avatar renjintao

addAccessory

parent 9e16d7c1
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
/> />
</template> </template>
<template slot-scope="{ row, index }" slot="remarks"> <template slot-scope="{ row, index }" slot="remarks">
<Input type="text" v-model="row.remarks" @on-blur="inputChange1(row,index)" /> <Input type="text" v-model="row.remarks" @on-blur="inputChange1(i,row,index)" />
</template> </template>
</Table> </Table>
</div> </div>
<FooterToolbar v-show="footerToolbar"> <FooterToolbar v-show="footerToolbar" class="ftball">
<!--<div class="tip">已选{{selectItems.length}}项</div>--> <!--<div class="tip">已选{{selectItems.length}}项</div>-->
<Form :model="orderForm" :label-width="110" ref="formValidate" :rules="ruleValidate"> <Form :model="orderForm" :label-width="110" ref="formValidate" :rules="ruleValidate">
<FormItem label=" " prop="QuotationFinishDate"> <FormItem label=" " prop="QuotationFinishDate">
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
QuotationFinishDate: [ QuotationFinishDate: [
{ {
required: true, required: true,
message: "请选择齐套日期", message: "_",
trigger: "change", trigger: "change",
}, },
], ],
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
}); });
} else if (this.curArr == 4) { } else if (this.curArr == 4) {
//多条取消 //多条取消
this.datas[v].suport.forEach((ele, index, array) => { this.datas[v].suport.forEach((ele, index, array) => {
ele._checked = false; ele._checked = false;
this.$set(this.datas[v].suport, index, ele); this.$set(this.datas[v].suport, index, ele);
}); });
...@@ -298,18 +298,10 @@ export default { ...@@ -298,18 +298,10 @@ export default {
}, },
inputChange1(i, row, index) { inputChange1(i, row, index) {
//输入数量 //输入数量
// if (row.count != 0) {
// row._checked = true;
// } else {
// row._checked = false;
// }
this.$set(this.datas[i].suport, index, row); this.$set(this.datas[i].suport, index, row);
//alert(JSON.stringify(this.datas[i].suport[index]))
}, },
application() { application() {
//alert(JSON.stringify(this.datas));
//申请配套操作 //申请配套操作
this.$refs["formValidate"].validate((valid) => { this.$refs["formValidate"].validate((valid) => {
if (valid) { if (valid) {
let temItems = []; let temItems = [];
...@@ -348,9 +340,9 @@ export default { ...@@ -348,9 +340,9 @@ export default {
this.$Message.error("请输入申请数量"); this.$Message.error("请输入申请数量");
} else { } else {
Api.supportmainCreate(parms).then((res) => { Api.supportmainCreate(parms).then((res) => {
// alert(JSON.stringify(res));
if (res.success) { if (res.success) {
this.$Message.success("申请成功"); this.$Message.success("申请成功");
this.$emit("cancel");
} }
}); });
} }
...@@ -376,3 +368,4 @@ export default { ...@@ -376,3 +368,4 @@ export default {
}, },
}; };
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment