|
@@ -14,14 +14,14 @@
|
|
<Button
|
|
<Button
|
|
@click="quoteRoughDraft"
|
|
@click="quoteRoughDraft"
|
|
type="primary"
|
|
type="primary"
|
|
- v-show="type != 3"
|
|
|
|
|
|
+ v-show="type == 1"
|
|
style="margin-right: 10px"
|
|
style="margin-right: 10px"
|
|
>引用草稿</Button
|
|
>引用草稿</Button
|
|
>
|
|
>
|
|
<Button
|
|
<Button
|
|
@click="saveRoughDraft"
|
|
@click="saveRoughDraft"
|
|
type="primary"
|
|
type="primary"
|
|
- v-show="type != 3"
|
|
|
|
|
|
+ v-show="type == 1"
|
|
style="margin-right: 10px"
|
|
style="margin-right: 10px"
|
|
>保存草稿</Button
|
|
>保存草稿</Button
|
|
>
|
|
>
|
|
@@ -2658,6 +2658,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
postData() {
|
|
postData() {
|
|
|
|
+
|
|
let sendData = JSON.parse(JSON.stringify(this.info));
|
|
let sendData = JSON.parse(JSON.stringify(this.info));
|
|
// sendData.custom_detail_id = sendData.custom_id
|
|
// sendData.custom_detail_id = sendData.custom_id
|
|
// let sendList = JSON.parse(JSON.stringify(this.tableData));
|
|
// let sendList = JSON.parse(JSON.stringify(this.tableData));
|
|
@@ -2665,12 +2666,14 @@ export default {
|
|
let _save_metal = this.tableData.filter(
|
|
let _save_metal = this.tableData.filter(
|
|
(v) => v.is_metal && v.product_id
|
|
(v) => v.is_metal && v.product_id
|
|
);
|
|
);
|
|
|
|
+ // console.log(_save_metal)
|
|
_save_metal.length > 0 &&
|
|
_save_metal.length > 0 &&
|
|
_save_metal.map((v) => {
|
|
_save_metal.map((v) => {
|
|
v.type = 1;
|
|
v.type = 1;
|
|
v.material_id = v.product_id;
|
|
v.material_id = v.product_id;
|
|
v.ext_id = v.product_id;
|
|
v.ext_id = v.product_id;
|
|
});
|
|
});
|
|
|
|
+ console.log(sendList)
|
|
sendList.length > 0 &&
|
|
sendList.length > 0 &&
|
|
sendList.map((element, index) => {
|
|
sendList.map((element, index) => {
|
|
element.ext = element.extArray;
|
|
element.ext = element.extArray;
|
|
@@ -2685,6 +2688,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ console.log(2)
|
|
if (!element.measurement) {
|
|
if (!element.measurement) {
|
|
element.measurement = "";
|
|
element.measurement = "";
|
|
}
|
|
}
|