|
@@ -163,7 +163,7 @@
|
|
|
</div>
|
|
|
<div style="margin-left:20px">
|
|
|
<small><b>销售类别:</b> </small>
|
|
|
- <el-select v-model="saletype" size="mini" placeholder="请选择">
|
|
|
+ <el-select v-model="saletype" size="small" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in saleroptions"
|
|
|
:key="item.value"
|
|
@@ -172,6 +172,16 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
+ <div style="margin-left:20px">
|
|
|
+ <small><b>单据日期:</b> </small>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="billdate"
|
|
|
+ size="small"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="normal-margin">
|
|
|
<p class="normal-title mt-10 inline-16">订单备注</p>
|
|
@@ -245,7 +255,8 @@ export default {
|
|
|
isusedrebate:0,
|
|
|
signbackstatus:'不需要',
|
|
|
saletype:"",
|
|
|
- saler_name:""
|
|
|
+ saler_name:"",
|
|
|
+ billdate:''
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -290,6 +301,7 @@ export default {
|
|
|
this.saletype = this.data.saletype
|
|
|
this.signbackstatus = this.data.signbackstatus
|
|
|
this.saler_name = this.data.saler_name
|
|
|
+ this.billdate = this.data.billdate
|
|
|
},
|
|
|
|
|
|
async onSubmit() {
|
|
@@ -297,27 +309,32 @@ export default {
|
|
|
"id": 20221108111402,
|
|
|
"content": {
|
|
|
"sa_orderid": this.$route.query.id,
|
|
|
- "sys_enterpriseid": this.defaultData.sys_enterpriseid, //订货企业id
|
|
|
+ "sys_enterpriseid": this.data.sys_enterpriseid, //订货企业id
|
|
|
"sa_accountclassid": this.defaultData.accountclass.sa_accountclassid, //营销账户类型ID
|
|
|
"sa_brandid": this.data.sa_brandid, //品牌ID
|
|
|
- // "sa_contractid":this.data.sa_contractid, //合同ID,标准订单不传
|
|
|
- // "sa_projectid": this.data.sa_projectid, //工程项目表ID,标准订单不传
|
|
|
+ "sa_contractid":this.data.sa_contractid, //合同ID,标准订单不传
|
|
|
+ "sa_projectid": this.data.sa_projectid, //工程项目表ID,标准订单不传
|
|
|
"sys_enterprise_financeid": this.defaultData.fin_info.sys_enterprise_financeid, //合作企业财务信息ID(开票信息)
|
|
|
"sa_logiscompid": this.defaultData.logist_info.sa_logiscompid, //物流公司档案ID
|
|
|
"rec_contactsid": this.defaultData.re_info.contactsid, //合作企业联系人表ID(收货信息)
|
|
|
"type": this.data.type, //订单类型
|
|
|
"typemx":this.data.typemx, //明细分类,可选
|
|
|
"remarks": this.defaultData.remarks, //可选
|
|
|
- // "saler_hrid":this.data.saler_hrid//销售人员hrid,业务员hrid
|
|
|
+ "saler_hrid":this.data.saler_hrid,//销售人员hrid,业务员hrid
|
|
|
"signbackstatus":this.signbackstatus,
|
|
|
+ "tradefieldmx":this.data.tradefieldmx,
|
|
|
"pay_enterpriseid":this.data.pay_enterpriseid,
|
|
|
"tradefield":this.data.tradefield,
|
|
|
"saletype":this.saletype,
|
|
|
+ "rebate_used":this.checked,//默认0,是否使用返利金
|
|
|
+ "signbacknum":'',
|
|
|
+ "sa_promotionid":this.data.sa_promotionid,
|
|
|
+ "billdate":this.billdate
|
|
|
},
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.$emit('onSuccess')
|
|
|
- this.useRebate()
|
|
|
+ this.isusedrebate === 1?this.useRebate():""
|
|
|
this.drawer = false
|
|
|
})
|
|
|
},
|
|
@@ -348,7 +365,7 @@ export default {
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.setcol = 24
|
|
|
this.$refs['prolist'].listData()
|
|
|
- this.$emit('onSuccess')
|
|
|
+ // this.$emit('onSuccess')
|
|
|
})
|
|
|
},
|
|
|
async useRebate () {
|