|
@@ -12,13 +12,13 @@
|
|
|
</template>
|
|
|
<template #events>
|
|
|
<div v-if="!detailsId">
|
|
|
- <el-button type="primary" size="mini" @click="handelSubmit(1)">提交</el-button>
|
|
|
- <el-button size="mini">重置</el-button>
|
|
|
+ <el-button type="primary" :disabled="!dis" size="mini" @click="handelSubmit(1)">提交</el-button>
|
|
|
+ <el-button size="mini" @click="onReset">重置</el-button>
|
|
|
<el-button size="mini" :disabled="dis" @click="handleInform(2)">通知发货</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<el-button type="primary" size="mini" @click="handelSubmit(2)">保存</el-button>
|
|
|
- <el-button size="mini">重置</el-button>
|
|
|
+ <el-button size="mini" @click="onReset">重置</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
width: '300'
|
|
|
},
|
|
|
{
|
|
|
- prop: 'stockLockQty',
|
|
|
+ prop: 'stockQty',
|
|
|
label: '库存数量',
|
|
|
width: '180'
|
|
|
},
|
|
@@ -92,16 +92,16 @@ export default {
|
|
|
width: '180',
|
|
|
isInput: true
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'volume',
|
|
|
- label: '体积',
|
|
|
- width: '180'
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'totalVolume',
|
|
|
- label: '总体积',
|
|
|
- width: '180'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // prop: 'volume',
|
|
|
+ // label: '体积',
|
|
|
+ // width: '180'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'totalVolume',
|
|
|
+ // label: '总体积',
|
|
|
+ // width: '180'
|
|
|
+ // },
|
|
|
{
|
|
|
prop: 'notes',
|
|
|
label: '备注',
|
|
@@ -167,21 +167,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
delChange() {
|
|
|
- this.dataList.forEach((k, i) => {
|
|
|
- this.selection.forEach((l, e) => {
|
|
|
- if (k.id === l.id) {
|
|
|
- this.dataList.splice(i, 1)
|
|
|
- this.selection.splice(e, 1)
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- if (!this.dataList.length) {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.header.screenForm = {}
|
|
|
- this.customerNumber = ''
|
|
|
- })
|
|
|
|
|
|
+ if (this.dataList.length) {
|
|
|
+ this.dataList.forEach((k, i) => {
|
|
|
+ this.selection.forEach((l, e) => {
|
|
|
+ if (k.id === l.id) {
|
|
|
+ this.dataList.splice(i, 1)
|
|
|
+ this.selection.splice(e, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ if (this.dataList.length == 1) {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.header.screenForm = {}
|
|
|
+ this.customerNumber = ''
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
handleSelection(data) {
|
|
|
this.selection = data
|
|
@@ -232,6 +235,11 @@ export default {
|
|
|
})
|
|
|
|
|
|
}
|
|
|
+ },
|
|
|
+ onReset(){
|
|
|
+ Object.assign(this.$data, this.$options.data())
|
|
|
+ this.$refs.header.screenForm = {}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|