|
|
|
@ -12,10 +12,10 @@
|
|
|
|
|
<view class="single">
|
|
|
|
|
<view class="single-left">
|
|
|
|
|
<view>rfid:</view>
|
|
|
|
|
<u-search placeholder="请扫描" v-model="orderNo" @search="query" :show-action="false"></u-search>
|
|
|
|
|
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" @search="query" :show-action="false"></u-search>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
<u-button type="primary" @click="query">扫描</u-button>
|
|
|
|
|
<u-button type="primary" @click="query">查询</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 物料编码 -->
|
|
|
|
@ -40,10 +40,10 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 工单 -->
|
|
|
|
|
<u-form-item label="工单">
|
|
|
|
|
<u-input :disabled="true" v-model="model.orderNoItemList.workorderName" placeholder="" />
|
|
|
|
|
<u-input :disabled="true" v-model="model.orderNoItemList.workorderCode" placeholder="" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item>
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="selectProductLOC" showKey="label" valKey="value" :val="productLocList.value" :options="model.DictList" />
|
|
|
|
|
<u-form-item label="缓存区">
|
|
|
|
|
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductLOC" showKey="label" valKey="value" :val="productLocList.value" :options="model.DictList" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 是否合格 -->
|
|
|
|
|
<u-form-item label="是否合格">
|
|
|
|
@ -108,6 +108,8 @@ import { session } from '@/store/modules/session';
|
|
|
|
|
})
|
|
|
|
|
export default class productCheckReceipt extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
moren = '选择缓存区';
|
|
|
|
|
shouciFocus = true;
|
|
|
|
|
// remove: any = {};
|
|
|
|
|
// async onReady() {
|
|
|
|
|
// await this.model.queryLocation();
|
|
|
|
@ -173,7 +175,8 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
let imgUrlList: any = res.tempFilePaths;
|
|
|
|
|
tempFilePaths.map((item, index) => {
|
|
|
|
|
uni.uploadFile({
|
|
|
|
|
url: '/api/dev-api/file/upload',
|
|
|
|
|
url: 'http://192.168.202.20:9000/prod-api/file/upload',
|
|
|
|
|
//url: '/dev-api/file/upload',
|
|
|
|
|
fileType: 'image',
|
|
|
|
|
filePath: item,
|
|
|
|
|
header: {
|
|
|
|
@ -288,13 +291,22 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
fileId: this.imgList.join(','),
|
|
|
|
|
};
|
|
|
|
|
await this.model.OnSubmit(params);
|
|
|
|
|
if (this.model.SubmitCode == '1') {
|
|
|
|
|
this.customToast('质检成功!');
|
|
|
|
|
if (this.model.SubmitCode == 200) {
|
|
|
|
|
// this.customToast('质检成功!');
|
|
|
|
|
this.uni.showToast({ title: '质检成功' });
|
|
|
|
|
this.orderNo = '';
|
|
|
|
|
this.badMeg = '';
|
|
|
|
|
this.productCodeList = {};
|
|
|
|
|
this.productLocList = {};
|
|
|
|
|
this.imgUrlList = [];
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
this.model.empty();
|
|
|
|
|
await this.query();
|
|
|
|
|
this.shouciFocus = false;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.shouciFocus = true;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//await this.query();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|