|
@@ -109,7 +109,13 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :span="8">
|
|
|
<a-form-model-item label="是否抓单" prop="grabFlag">
|
|
|
- <v-select code="FLAG" :disabled="isEdit" id="chooseCustom-grabFlag" v-model="form.grabFlag" allowClear placeholder="请选择"></v-select>
|
|
|
+ <v-select
|
|
|
+ code="FLAG"
|
|
|
+ :disabled="isEdit"
|
|
|
+ id="chooseCustom-grabFlag"
|
|
|
+ v-model="form.grabFlag"
|
|
|
+ allowClear
|
|
|
+ placeholder="请选择"></v-select>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
@@ -119,12 +125,12 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :span="24">
|
|
|
<a-form-model-item label="备注" :labelCol="{ span: 2 }" :wrapper-col="{ span: 14 }">
|
|
|
- <a-textarea
|
|
|
- v-model="form.remarks"
|
|
|
- :maxLength="100"
|
|
|
- placeholder="请输入备注(最多100个字符)"
|
|
|
- :auto-size="{ minRows: 2, maxRows: 6 }"
|
|
|
- />
|
|
|
+ <a-textarea
|
|
|
+ v-model="form.remarks"
|
|
|
+ :maxLength="100"
|
|
|
+ placeholder="请输入备注(最多100个字符)"
|
|
|
+ :auto-size="{ minRows: 2, maxRows: 6 }"
|
|
|
+ />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -204,7 +210,7 @@ export default {
|
|
|
{ required: true, message: '请选择区/县', trigger: 'change' }
|
|
|
],
|
|
|
grabFlag: [
|
|
|
- { required: true, message: '请选择是否铺货出库', trigger: 'change' }
|
|
|
+ { required: true, message: '请选择是否抓单', trigger: 'change' }
|
|
|
]
|
|
|
},
|
|
|
addrProvinceList: [], // 省下拉
|
|
@@ -264,7 +270,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
- if(!this.isEdit){
|
|
|
+ if (!this.isEdit) {
|
|
|
this.$refs.custList.resetForm()
|
|
|
}
|
|
|
}
|
|
@@ -277,7 +283,7 @@ export default {
|
|
|
this.form = Object.assign(this.form, data)
|
|
|
this.form.buyerName = data.buyerNameCurrent || data.buyerName
|
|
|
this.buyerSnBak = this.form.buyerSn
|
|
|
- if(data.buyerInfo){
|
|
|
+ if (data.buyerInfo) {
|
|
|
this.form.contactTel = data.buyerInfo.contactTel
|
|
|
this.form.contactMobile = data.buyerInfo.contactMobile
|
|
|
this.form.consigneeName = data.buyerInfo.contactName
|