子卷入库
This commit is contained in:
@@ -180,6 +180,7 @@
|
||||
"grid.work-order-number": "Work order number",
|
||||
"grid.mother-roll-number": "Master roll number",
|
||||
"grid.sub-roll-number": "Sub - roll Number",
|
||||
"grid.sub-num": "Number of sub - rolls",
|
||||
"grid.start-time": "Start time",
|
||||
"grid.end-time": "End time",
|
||||
"grid.machine-code": "Machine coding",
|
||||
|
||||
@@ -180,6 +180,7 @@
|
||||
"grid.work-order-number": "Nomor pesanan kerja",
|
||||
"grid.mother-roll-number": "Nomor gulungan induk",
|
||||
"grid.sub-roll-number": "Nomor gulungan anak",
|
||||
"grid.sub-num": "Jumlah gulungan anak",
|
||||
"grid.start-time": "Waktu mulai",
|
||||
"grid.end-time": "Waktu berakhir",
|
||||
"grid.machine-code": "Pengkodean mesin",
|
||||
|
||||
@@ -180,6 +180,7 @@
|
||||
"grid.work-order-number": "工单号",
|
||||
"grid.mother-roll-number": "母卷号",
|
||||
"grid.sub-roll-number": "子卷号",
|
||||
"grid.sub-num": "子卷数",
|
||||
"grid.start-time": "开始时间",
|
||||
"grid.end-time": "结束时间",
|
||||
"grid.machine-code": "机台编码",
|
||||
|
||||
@@ -28,10 +28,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{$t('filter.box-no')}}</th>
|
||||
<th>{{$t('grid.sub-roll-capacity')}}</th>
|
||||
<th>{{$t('grid.product-description')}}</th>
|
||||
<th>{{$t('grid.sap-batch')}}</th>
|
||||
<th>{{$t('grid.product-spec')}}</th>
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.sub-num')}}</th>
|
||||
<th>{{$t('grid.wooden-box-weight')}}</th>
|
||||
<th>{{$t('grid.wooden-box-length')}}</th>
|
||||
<th>{{$t('grid.wooden-box-width')}}</th>
|
||||
@@ -39,12 +38,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.package_box_sn === pkId}">
|
||||
<td>{{e.package_box_sn}}</td>
|
||||
<td>{{e.quanlity_in_box}}</td>
|
||||
<td>{{e.product_description}}</td>
|
||||
<td>{{e.sap_pcsn}}</td>
|
||||
<td>{{e.width}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.num}}</td>
|
||||
<td>{{e.box_weight}}</td>
|
||||
<td>{{e.box_length}}</td>
|
||||
<td>{{e.box_width}}</td>
|
||||
@@ -57,7 +55,8 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
||||
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !arr1.length}" :disabled="disabled" @tap="handleConfirm">{{$t('button.zxinstore')}}</button>
|
||||
<!-- <button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !arr1.length}" :disabled="disabled" @tap="handleConfirm">{{$t('button.zxinstore')}}</button> -->
|
||||
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': (!arr1.length || !pkId)}" :disabled="disabled" @tap="handleConfirm">{{$t('button.zxinstore')}}</button>
|
||||
</view>
|
||||
<up-top ref="UT" :scrollTop="top"></up-top>
|
||||
</view>
|
||||
@@ -81,6 +80,8 @@
|
||||
top: 0,
|
||||
val1: '',
|
||||
arr1: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
isV: '0'
|
||||
@@ -93,6 +94,10 @@
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.package_box_sn ? '' : e.package_box_sn
|
||||
this.pkObj = this.pkId === e.package_box_sn ? e : {}
|
||||
},
|
||||
isVirtual () {
|
||||
this.isV = this.isV === '0' ? '1' : '0'
|
||||
},
|
||||
@@ -114,12 +119,14 @@
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.arr1 = []
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.dataList = []
|
||||
this.disabled = false
|
||||
this.isV = '0'
|
||||
},
|
||||
async handleConfirm() {
|
||||
if (!this.arr1.length) {
|
||||
if (!this.arr1.length || !this.pkId) {
|
||||
return
|
||||
}
|
||||
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
|
||||
@@ -130,7 +137,7 @@
|
||||
async _zjInBoundConfirm () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await zjInBoundConfirm(this.arr1.join(','), this.isV)
|
||||
let res = await zjInBoundConfirm(this.arr1.join(','), this.isV, this.pkId)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
@@ -69,8 +69,8 @@
|
||||
},
|
||||
methods: {
|
||||
async _authority () {
|
||||
let res = await authority()
|
||||
// let res = await allAuthority()
|
||||
// let res = await authority()
|
||||
let res = await allAuthority()
|
||||
if (res.code === '1') {
|
||||
this.menuList = [...res.result.rf_menu1.sonTree]
|
||||
} else {
|
||||
|
||||
@@ -366,9 +366,9 @@ export const zjInBound = (code) => request({
|
||||
url:'api/pdmBiSubpackagerelation/zjInBound',
|
||||
data: {container_name: code}
|
||||
})
|
||||
export const zjInBoundConfirm = (code, inb) => request({
|
||||
export const zjInBoundConfirm = (code, inb, bno) => request({
|
||||
url:'api/pdmBiSubpackagerelation/zjInBoundConfirm',
|
||||
data: {search: code, inbound: inb}
|
||||
data: {search: code, inbound: inb, box_no: bno}
|
||||
})
|
||||
/**
|
||||
* 分切呼叫送轴(分切管理)
|
||||
|
||||
Reference in New Issue
Block a user