|
@@ -11,6 +11,20 @@
|
|
|
style="margin-right: 10px"
|
|
|
>打印</Button
|
|
|
>
|
|
|
+ <Button
|
|
|
+ @click="quoteRoughDraft"
|
|
|
+ type="primary"
|
|
|
+ v-show="type != 3"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ >引用草稿</Button
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ @click="saveRoughDraft"
|
|
|
+ type="primary"
|
|
|
+ v-show="type != 3"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ >保存草稿</Button
|
|
|
+ >
|
|
|
<Button @click="back" type="primary" ghost style="margin-right: 10px"
|
|
|
>返回</Button
|
|
|
>
|
|
@@ -2529,6 +2543,37 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ quoteRoughDraft(){
|
|
|
+ this.axios
|
|
|
+ .post("/api/update/get_table", { id: "businessorderlist_detail_roughDraft" })
|
|
|
+ .then((res) => {
|
|
|
+ this.post_formSetTableData = res.data.table.post_formSetTableData;
|
|
|
+ this.info = res.data.table.info;
|
|
|
+ this.formSetTableData = res.data.table.formSetTableData;
|
|
|
+ this.handleClientChargeChange(res.data.table.info.custom_detail_name);
|
|
|
+ this.tableData = res.data.table.tableData;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ saveRoughDraft(){
|
|
|
+ this.axios({
|
|
|
+ method: "post",
|
|
|
+ url: "/api/update/table",
|
|
|
+ data: {
|
|
|
+ id: "businessorderlist_detail_roughDraft",
|
|
|
+ result: {
|
|
|
+ post_formSetTableData: this.post_formSetTableData,
|
|
|
+ info:this.info,
|
|
|
+ formSetTableData:this.formSetTableData,
|
|
|
+ tableData:this.tableData
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$Message.success(res.msg);
|
|
|
+ // this.initData(this.order_no);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
print_line(){
|
|
|
this.axios({
|
|
|
method:'get',
|