|
@@ -35,7 +35,7 @@
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
</template>
|
|
</template>
|
|
</sales-table>
|
|
</sales-table>
|
|
- <sales-dialog :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList"
|
|
|
|
|
|
+ <sales-dialog ref="dia" :dialogVisible="dialogVisible" :customerNumber="customerNumber" :func="getDialogList"
|
|
@confirm="confirm"
|
|
@confirm="confirm"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -62,7 +62,7 @@ export default {
|
|
customerNumber: '',
|
|
customerNumber: '',
|
|
dataList: [],
|
|
dataList: [],
|
|
selection: [],
|
|
selection: [],
|
|
- disabled:false,
|
|
|
|
|
|
+ disabled: false,
|
|
flag: 1,
|
|
flag: 1,
|
|
dis: true,
|
|
dis: true,
|
|
column: [
|
|
column: [
|
|
@@ -72,7 +72,7 @@ export default {
|
|
width: '180'
|
|
width: '180'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'materialOldNumber',
|
|
|
|
|
|
+ prop: 'materialCode',
|
|
label: '物料编码',
|
|
label: '物料编码',
|
|
width: '180'
|
|
width: '180'
|
|
},
|
|
},
|
|
@@ -111,7 +111,8 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- isFront:JSON.parse(localStorage.getItem('supply_user')).isFront
|
|
|
|
|
|
+ isFront: JSON.parse(localStorage.getItem('supply_user')).isFront,
|
|
|
|
+ salesId: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -119,13 +120,13 @@ export default {
|
|
getFrontOrderDetail({ id: this.detailsId }).then(res => {
|
|
getFrontOrderDetail({ id: this.detailsId }).then(res => {
|
|
this.dataList = res.data.orders
|
|
this.dataList = res.data.orders
|
|
this.$refs.header.screenForm = res.data
|
|
this.$refs.header.screenForm = res.data
|
|
- this.$refs.header.screenForm.disabled =this.disabled = res.data.status !== 1?true:false
|
|
|
|
|
|
+ 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.provinceId = res.data.province
|
|
this.$refs.header.screenForm.cityId = res.data.city
|
|
this.$refs.header.screenForm.cityId = res.data.city
|
|
this.$refs.header.screenForm.areaId = res.data.area
|
|
this.$refs.header.screenForm.areaId = res.data.area
|
|
this.$refs.header.screenForm.streetId = res.data.street
|
|
this.$refs.header.screenForm.streetId = res.data.street
|
|
- this.$refs.header.screenForm.stockType = res.data.stockType == 1 ? '前置仓' : '商家仓'
|
|
|
|
|
|
+ this.$refs.header.screenForm.stockType = res.data.stockType
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
Object.assign(this.$data, this.$options.data())
|
|
Object.assign(this.$data, this.$options.data())
|
|
@@ -135,10 +136,10 @@ export default {
|
|
|
|
|
|
getDialogList(p) {
|
|
getDialogList(p) {
|
|
let func = getcustomerFrontList
|
|
let func = getcustomerFrontList
|
|
- if (this.isFront===true){
|
|
|
|
|
|
+ if (this.isFront === true) {
|
|
func = getcustomerFrontList
|
|
func = getcustomerFrontList
|
|
}
|
|
}
|
|
- if (this.isFront===false){
|
|
|
|
|
|
+ if (this.isFront === false) {
|
|
func = getFrontListCustomer
|
|
func = getFrontListCustomer
|
|
}
|
|
}
|
|
return func(...p)
|
|
return func(...p)
|
|
@@ -155,12 +156,14 @@ export default {
|
|
},
|
|
},
|
|
handleDel(item, index) {
|
|
handleDel(item, index) {
|
|
this.dataList.splice(index, 1)
|
|
this.dataList.splice(index, 1)
|
|
|
|
+ // this.$refs.multipleTable.clearSelection()
|
|
|
|
+
|
|
|
|
+ console.log(this.$refs.dia)
|
|
if (!this.dataList.length) {
|
|
if (!this.dataList.length) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.header.screenForm = {}
|
|
this.$refs.header.screenForm = {}
|
|
this.customerNumber = ''
|
|
this.customerNumber = ''
|
|
})
|
|
})
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
delChange() {
|
|
delChange() {
|
|
@@ -185,8 +188,9 @@ export default {
|
|
},
|
|
},
|
|
handleInform(status = 2) {
|
|
handleInform(status = 2) {
|
|
console.log(33)
|
|
console.log(33)
|
|
- sbumitFrontOrder({ id: this.$refs.header.screenForm.id, status }).then(res => {
|
|
|
|
- console.log(res)
|
|
|
|
|
|
+ sbumitFrontOrder({ id: this.salesId, status }).then(res => {
|
|
|
|
+ this.$successMsg('通知发货')
|
|
|
|
+ this.$parent.pageType = 0
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handelSubmit(type, status = 1) {
|
|
handelSubmit(type, status = 1) {
|
|
@@ -216,7 +220,7 @@ export default {
|
|
this.$successMsg('新增成功')
|
|
this.$successMsg('新增成功')
|
|
this.dis = false
|
|
this.dis = false
|
|
// this.$parent.pageType = 0
|
|
// this.$parent.pageType = 0
|
|
-
|
|
|
|
|
|
+ this.salesId = res.data
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
})
|
|
})
|
|
|
|
|