|
@@ -22,7 +22,7 @@ ed<template>
|
|
|
<el-input v-model="form.logisticno" placeholder="物流单号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="寄付方式">
|
|
|
- <el-select v-model="form.paytype" placeholder="请选择">
|
|
|
+ <el-select v-model="form.paytype" placeholder="请选择" :disabled="isCorrelate > 0">
|
|
|
<el-option
|
|
|
label="到付"
|
|
|
value="到付">
|
|
@@ -65,7 +65,7 @@ ed<template>
|
|
|
</div>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="setcol">
|
|
|
- <dispatch-table type="edit" :needQuery="true" ref="dislist"></dispatch-table>
|
|
|
+ <dispatch-table type="edit" :needQuery="true" ref="dislist" @isCorrelation="isCorrelation"></dispatch-table>
|
|
|
</el-col>
|
|
|
<el-col :span="24 - setcol">
|
|
|
<add-disbill ref="addbill" :data="enterpriseInfo" @onConfirm="onConfirm"></add-disbill>
|
|
@@ -115,6 +115,7 @@ export default {
|
|
|
drawer:false,
|
|
|
visible:false,
|
|
|
setcol:24,
|
|
|
+ isCorrelate:0,
|
|
|
form:{
|
|
|
"freightamount": "",
|
|
|
"logisticno": "",
|
|
@@ -128,7 +129,7 @@ export default {
|
|
|
"logisphone":"",
|
|
|
"logiscontact":"",
|
|
|
"rec_contactsid":'',
|
|
|
- "billdate":''
|
|
|
+ "billdate":'',
|
|
|
},
|
|
|
enterpriseInfo:null,
|
|
|
pickerOptions: {
|
|
@@ -145,9 +146,14 @@ export default {
|
|
|
this.$nextTick(()=>{
|
|
|
this.$refs['ent'].form.enterprisename = this.data.enterprisename
|
|
|
this.$refs['logis'].form.abbreviation = this.data.logiscomp_enterprisename
|
|
|
+ this.$refs.dislist.listData()
|
|
|
+ this.setcol = 24
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ isCorrelation(val){
|
|
|
+ this.isCorrelate = val
|
|
|
+ },
|
|
|
addMoreBill () {
|
|
|
if (this.enterpriseInfo === null) return this.$message({
|
|
|
message:'请先选择企业信息',
|
|
@@ -170,8 +176,8 @@ export default {
|
|
|
return arr.filter((item) => !res.has(item[uniId]) && res.set(item[uniId], 1));
|
|
|
}
|
|
|
this.$refs['dislist'].tableData = unique([...this.$refs['dislist'].tableData,...data],'billno')
|
|
|
+ this.isCorrelate = this.$refs.dislist.tableData.length
|
|
|
this.form.remarks = this.$refs['dislist'].tableData[0].remarks
|
|
|
-
|
|
|
},
|
|
|
async onSubmit () {
|
|
|
this.form.sa_dispatchids = this.$refs['dislist'].tableData.map(e=>{
|