|
@@ -23,7 +23,7 @@
|
|
|
<div v-if="!detailsId">
|
|
|
<el-button type="primary" :disabled="!dis" size="mini" @click="handelSubmit(1)">提交</el-button>
|
|
|
<el-button v-if="dis" size="mini" @click="onReset">重置 </el-button>
|
|
|
- <el-button v-if="!isFront" size="mini" :disabled="dis" @click="handleInform(2)">通知发货</el-button>
|
|
|
+ <el-button v-if="stokType == 1 " size="mini" :disabled="dis" @click="handleInform(2)">通知发货</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<el-button type="primary" size="mini" @click="handelSubmit(2)">保存</el-button>
|
|
@@ -114,12 +114,14 @@ export default {
|
|
|
],
|
|
|
isFront: JSON.parse(localStorage.getItem('supply_user')).isFront,
|
|
|
salesId: '',
|
|
|
- stokType: null
|
|
|
+ stokType: null,
|
|
|
+ details: {}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
if (this.detailsId) {
|
|
|
getFrontOrderDetail({ id: this.detailsId }).then(res => {
|
|
|
+ this.details = res.data
|
|
|
this.dataList = res.data.orders
|
|
|
// this.dataList = res.data.orders.map(k => {
|
|
|
// k.disabledId = k.customerStockId
|
|
@@ -337,9 +339,10 @@ export default {
|
|
|
type: 'text'
|
|
|
}
|
|
|
]
|
|
|
- if (this.isFront === false) {
|
|
|
+ if (this.stokType === 2) {
|
|
|
this.handleBack()
|
|
|
- } this.salesId = res.data
|
|
|
+ }
|
|
|
+ this.salesId = res.data
|
|
|
this.$set(this.$refs.header.screenForm, 'id', res.data)
|
|
|
this.$forceUpdate()
|
|
|
})
|