Commit f825ac81 by liangjianmin

feat: 添加合同ID管理,优化获取合同详情逻辑

parent 6e79d3f1
Showing with 6 additions and 6 deletions
......@@ -323,6 +323,7 @@ export default {
langOptions: [],
selectedLang: '',
uploadUrl: NODE_ENVS + '/api/purContract/updateOrderContract',
contract_id: '',//合同id
fileData: {
token: this.token,
contract_id: 0,
......@@ -349,9 +350,8 @@ export default {
}
},
methods: {
getData(id) {
this.$http('post', "/api/purchase/purOrderDetail", { id: id }).then(res => {
console.log(res);
getData() {
this.$http('post', "/api/purchase/purOrderDetail", { id: this.id }).then(res => {
if (res.code === 0) {
this.infos = res.data.purchase_info;
this.tableData = res.data.purchase_item_list || [];
......@@ -434,6 +434,7 @@ export default {
},
// 签署合同
showSignDialog(contractItem) {
this.contract_id = contractItem.contractId;
this.signDialogVisible = true;
},
// 关闭签署合同弹窗
......@@ -442,15 +443,14 @@ export default {
},
// 提交签署合同
submitSignContract() {
this.$http('POST', "/api/purContract/signContract", { sku_apply_num_json: JSON.stringify(this.sku_apply_num_json), remark: this.remark }).then(res => {
this.$http('POST', "/api/purContract/signContract", { contract_id: this.contract_id }).then(res => {
if (res.code === 0) {
this.$message({
message: '签署合同成功',
type: 'success',
onClose: () => {
this.signDialogVisible = false;
this.remark = '';
this.getList();
this.getData();
}
});
} else {
......
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 sign in to comment