|
@@ -347,6 +347,7 @@ Page({
|
|
|
"sa_orderid": data.sa_orderid,
|
|
|
"sys_enterpriseid": data.sys_enterpriseid, //订货企业id
|
|
|
"sa_accountclassid": data.accountclass.sa_accountclassid || 0, //营销账户类型ID
|
|
|
+ projectnote: data.projectnote || "", //项目备注
|
|
|
"sa_brandid": data.sa_brandid, //品牌ID
|
|
|
"sys_enterprise_financeid": data.sys_enterprise_financeid || 0, //合作企业财务信息ID(开票信息)
|
|
|
//"sa_logiscompid": data.logiscomp.sa_logiscompid || 0, 物流公司档案ID
|
|
@@ -381,22 +382,23 @@ Page({
|
|
|
},
|
|
|
/* 修改订单备注 */
|
|
|
changeRemarks(e) {
|
|
|
- let value = e.detail.value,
|
|
|
- remarks = this.data.detail.remarks,
|
|
|
+ let name = e.currentTarget.dataset.name,
|
|
|
+ value = e.detail.value,
|
|
|
+ remarks = this.data.detail[name],
|
|
|
that = this;
|
|
|
- if (value == this.data.detail.remarks) return;
|
|
|
+ if (value == remarks) return;
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
- content: '是否确定修改订单备注?',
|
|
|
+ content: `是否确定修改${name=='remarks'?'订单':'项目'}备注?`,
|
|
|
complete: async (res) => {
|
|
|
if (res.cancel) that.setData({
|
|
|
- "detail.remarks": remarks
|
|
|
+ [`detail[${name}]`]: remarks
|
|
|
})
|
|
|
if (res.confirm) {
|
|
|
- this.data.detail.remarks = value;
|
|
|
+ this.data.detail[name] = value;
|
|
|
let res = await that.changeDetail();
|
|
|
that.setData({
|
|
|
- "detail.remarks": res.msg == '成功' ? value : remarks
|
|
|
+ [`detail${name}`]: res.msg == '成功' ? value : remarks
|
|
|
})
|
|
|
}
|
|
|
}
|