部分页面功能修改
This commit is contained in:
@@ -32,16 +32,6 @@
|
||||
<uni-data-select v-model="currentData.product_area" :localdata="options2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="required" class="zd-row">
|
||||
<view class="zd-col-10">
|
||||
<span class="filter_label">关联用料清单编码</span>
|
||||
</view>
|
||||
<view class="zd-col-14">
|
||||
<search-box
|
||||
v-model="code"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="JSON.stringify(currentData) !== '{}'" class="grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -84,7 +74,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-primary" @tap="toEmpty">返回</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}' || (required && !code)}" :disabled="disabled" @tap="_outStorageConfirm">出库确认</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageConfirm">出库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -108,9 +98,7 @@
|
||||
index1: '',
|
||||
options2: [{value: 'A1', text: 'A1车间'}, {value: 'A2', text: 'A2车间'}, {value: 'A3', text: 'A3车间'}],
|
||||
allCheck: false,
|
||||
formTypeName: '',
|
||||
required: false,
|
||||
code: ''
|
||||
formTypeName: ''
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -120,11 +108,6 @@
|
||||
if (this.$store.getters.publicObj !== '') {
|
||||
this.currentData = this.$store.getters.publicObj
|
||||
this._outStorageOrder()
|
||||
if (this.currentData.form_type === 'STK_TransferDirect' || this.currentData.form_type === 'ka7c19edf9d4b4b39b8cc4a06802163b0' || this.currentData.form_type === 'STK_MisDelivery') {
|
||||
this.required = true
|
||||
} else {
|
||||
this.required = false
|
||||
}
|
||||
this.dataList = [...this.currentData.children]
|
||||
this.dataList.map(el => {
|
||||
this.$set(el, 'now_assign_qty', el.qty)
|
||||
@@ -192,12 +175,12 @@
|
||||
},
|
||||
async _outStorageConfirm () {
|
||||
this.disabled = true
|
||||
if (JSON.stringify(this.currentData) === '{}' || (this.required && !this.code)) {
|
||||
if (JSON.stringify(this.currentData) === '{}') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
let arr = this.dataList.filter(el => el.checked === true)
|
||||
let obj = Object.assign(this.currentData, {children: arr, stor_code: this.index1, prd_ppbom_no: this.code})
|
||||
let obj = Object.assign(this.currentData, {children: arr, stor_code: this.index1})
|
||||
try {
|
||||
let res = await outStorageConfirm(obj)
|
||||
if (res.code === '200') {
|
||||
|
||||
Reference in New Issue
Block a user