|
@@ -16,7 +16,7 @@
|
|
|
<el-button size="mini">重置</el-button>
|
|
|
<el-button size="mini" :disabled="dis" @click="handleInform(2)">通知发货</el-button>
|
|
|
</div>
|
|
|
- <div v-else>
|
|
|
+ <div v-if="!disabled">
|
|
|
<el-button type="primary" size="mini" @click="handelSubmit(2)">保存</el-button>
|
|
|
<el-button size="mini">重置</el-button>
|
|
|
</div>
|
|
@@ -62,6 +62,7 @@ export default {
|
|
|
customerNumber: '',
|
|
|
dataList: [],
|
|
|
selection: [],
|
|
|
+ disabled:false,
|
|
|
flag: 1,
|
|
|
dis: true,
|
|
|
column: [
|
|
@@ -105,7 +106,8 @@ export default {
|
|
|
prop: 'notes',
|
|
|
label: '备注',
|
|
|
width: '180',
|
|
|
- isInput: true
|
|
|
+ isInput: true,
|
|
|
+ type: 'text'
|
|
|
|
|
|
}
|
|
|
]
|
|
@@ -116,12 +118,16 @@ export default {
|
|
|
getFrontOrderDetail({ id: this.detailsId }).then(res => {
|
|
|
this.dataList = res.data.orders
|
|
|
this.$refs.header.screenForm = res.data
|
|
|
+ this.$refs.header.screenForm.disabled =this.disabled = res.data.status !== 1?true:false
|
|
|
+
|
|
|
this.$refs.header.screenForm.provinceId = res.data.province
|
|
|
this.$refs.header.screenForm.cityId = res.data.city
|
|
|
this.$refs.header.screenForm.areaId = res.data.area
|
|
|
this.$refs.header.screenForm.streetId = res.data.street
|
|
|
this.$refs.header.screenForm.stockType = res.data.stockType == 1 ? '前置仓' : '商家仓'
|
|
|
})
|
|
|
+ } else {
|
|
|
+ Object.assign(this.$data, this.$options.data())
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -130,7 +136,7 @@ export default {
|
|
|
return getcustomerFrontList(...p)
|
|
|
},
|
|
|
confirm(selected) {
|
|
|
- // console.log(selected)
|
|
|
+ console.log(selected)
|
|
|
this.dataList = selected
|
|
|
this.$refs.header.screenForm.customerName = this.dataList[0].customerName
|
|
|
this.$refs.header.screenForm.customerNumber = this.dataList[0].customerNumber
|
|
@@ -186,7 +192,7 @@ export default {
|
|
|
console.log(Number(this.dataList[i].qty))
|
|
|
|
|
|
if (Number(this.dataList[i].qty) < 0 || !this.dataList[i].qty) {
|
|
|
- this.$errorMsg(`第${i+1}产品数量有误`)
|
|
|
+ this.$errorMsg(`第${i + 1}产品数量有误`)
|
|
|
return
|
|
|
}
|
|
|
}
|
|
@@ -201,7 +207,8 @@ export default {
|
|
|
addFrontOrder(params).then(res => {
|
|
|
this.$successMsg('新增成功')
|
|
|
this.dis = false
|
|
|
- this.$parent.pageType = 0
|
|
|
+ // this.$parent.pageType = 0
|
|
|
+
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
|
|