add打印功能,修改表单出库
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<view class="zd-col-6"><span class="filter_label">单位</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.unit_name}}</span></view>
|
||||
</view> -->
|
||||
<view class="zd-row">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">仓库</span></view>
|
||||
<view class="zd-col-6 filter_select">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
@@ -32,6 +32,15 @@
|
||||
<uni-data-select v-model="currentData.product_area" :localdata="options2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row jcflexstart">
|
||||
<view class="zd-col-6">
|
||||
<span class="filter_label">加急单据</span>
|
||||
</view>
|
||||
<view class="relative zd-col-6">
|
||||
<switch :checked="isChecked" color="#4e6ef2" style="transform:scale(0.8); transform-origin: left;"/>
|
||||
<text @tap="setWStatus" style="position: absolute;display: inline-block;width: 52px; height: 32px;left: 0;"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="JSON.stringify(currentData) !== '{}'" class="grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -100,7 +109,8 @@
|
||||
index1: '',
|
||||
options2: [{value: 'A1', text: 'A1车间'}, {value: 'A2', text: 'A2车间'}, {value: 'A3', text: 'A3车间'}],
|
||||
allCheck: false,
|
||||
formTypeName: ''
|
||||
formTypeName: '',
|
||||
isChecked: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -120,6 +130,9 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setWStatus () {
|
||||
this.isChecked = !this.isChecked
|
||||
},
|
||||
// 出库单类型
|
||||
async _outStorageOrder () {
|
||||
let res = await outStorageOrder()
|
||||
@@ -188,7 +201,8 @@
|
||||
return
|
||||
}
|
||||
let arr = this.dataList.filter(el => el.checked === true)
|
||||
let obj = Object.assign(this.currentData, {children: arr, stor_code: this.index1})
|
||||
let urgent = this.isChecked ? '1' : '0'
|
||||
let obj = Object.assign(this.currentData, {children: arr, stor_code: this.index1, urgent: urgent})
|
||||
try {
|
||||
let res = await outStorageConfirm(obj)
|
||||
if (res.code === '200') {
|
||||
|
||||
Reference in New Issue
Block a user