修改生箔工序、烘烤工序
This commit is contained in:
@@ -23,6 +23,14 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">收卷辊码</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-17">
|
||||||
|
<input v-model="val5" type="number" class="filter_input">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">大/小卷</span>
|
<span class="filter_label">大/小卷</span>
|
||||||
@@ -85,7 +93,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-4 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-4 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val2 || index1 === '' || !val3 || !val4}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
|
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val5 || index1 === '' || !val3 || !val4}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
|
||||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('1')">质检合格</button>
|
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('1')">质检合格</button>
|
||||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('0')">再次烘烤</button>
|
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('0')">再次烘烤</button>
|
||||||
</view>
|
</view>
|
||||||
@@ -112,7 +120,8 @@
|
|||||||
val3: '',
|
val3: '',
|
||||||
val4: '',
|
val4: '',
|
||||||
obj: {container_name: '-', status: '-', tip: '-'},
|
obj: {container_name: '-', status: '-', tip: '-'},
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
val5: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -149,6 +158,7 @@
|
|||||||
this.isChecked = false
|
this.isChecked = false
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
this.val4 = ''
|
this.val4 = ''
|
||||||
|
this.val5 = ''
|
||||||
this.obj = {container_name: '-', status: '-', tip: '-'}
|
this.obj = {container_name: '-', status: '-', tip: '-'}
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
@@ -171,13 +181,13 @@
|
|||||||
},
|
},
|
||||||
async _doModifyRawInfos () {
|
async _doModifyRawInfos () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2 || this.index1 === '' || !this.val3 || !this.val4) {
|
if (!this.val1 || !this.val5 || this.index1 === '' || !this.val3 || !this.val4) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let checked = this.isChecked ? '1' : '0'
|
let checked = this.isChecked ? '1' : '0'
|
||||||
let res = await doModifyRawInfos(this.val1, this.val2, this.options1[this.index1].value, checked, this.val3, this.val4)
|
let res = await doModifyRawInfos(this.val1, this.val2, this.options1[this.index1].value, checked, this.val3, this.val4, this.val5)
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -31,6 +31,14 @@
|
|||||||
<input v-model="val2" type="text" class="filter_input">
|
<input v-model="val2" type="text" class="filter_input">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">收卷辊码</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-17">
|
||||||
|
<input v-model="val3" type="number" class="filter_input">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="zd-row">
|
<view class="zd-row">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">呼叫收卷辊</span>
|
<span class="filter_label">呼叫收卷辊</span>
|
||||||
@@ -44,7 +52,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -63,6 +71,7 @@
|
|||||||
title: '',
|
title: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
|
val3: '',
|
||||||
isChecked: false,
|
isChecked: false,
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
@@ -77,6 +86,7 @@
|
|||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
|
this.val3 = ''
|
||||||
this.isChecked = false
|
this.isChecked = false
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
@@ -116,13 +126,13 @@
|
|||||||
},
|
},
|
||||||
async _needEmptyAxisv2 () {
|
async _needEmptyAxisv2 () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2) {
|
if (!this.val1 || !this.val3) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let checked = this.isChecked ? '1' : '0'
|
let checked = this.isChecked ? '1' : '0'
|
||||||
let res = await needEmptyAxisv2(this.val1, this.val2, checked)
|
let res = await needEmptyAxisv2(this.val1, this.val2, checked, this.val3)
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -158,9 +158,9 @@ export const necessaryEmptyVehicle = (code) => request({
|
|||||||
url:'api/pda/raw/necessaryEmptyVehicle',
|
url:'api/pda/raw/necessaryEmptyVehicle',
|
||||||
data: {point_code: code}
|
data: {point_code: code}
|
||||||
})
|
})
|
||||||
export const needEmptyAxisv2 = (code, order, is) => request({
|
export const needEmptyAxisv2 = (code, order, is, roll) => request({
|
||||||
url:'api/pda/raw/needEmptyAxis/v2',
|
url:'api/pda/raw/needEmptyAxis/v2',
|
||||||
data: {point_code: code, order_code: order, is_call_empty: is}
|
data: {point_code: code, order_code: order, is_call_empty: is, roll_code: roll}
|
||||||
})
|
})
|
||||||
export const confirmBlanking = (code, option) => request({
|
export const confirmBlanking = (code, option) => request({
|
||||||
url:'api/pda/raw/confirmBlanking',
|
url:'api/pda/raw/confirmBlanking',
|
||||||
@@ -171,9 +171,9 @@ export const getHotTempPointInfo = (code, order) => request({
|
|||||||
url:'api/pda/baking/getHotTempPointInfo',
|
url:'api/pda/baking/getHotTempPointInfo',
|
||||||
data: {point_code: code, order_code: order}
|
data: {point_code: code, order_code: order}
|
||||||
})
|
})
|
||||||
export const doModifyRawInfos = (code, order, type, is, temperature, time) => request({
|
export const doModifyRawInfos = (code, order, type, is, temperature, time, roll) => request({
|
||||||
url:'api/pda/baking/doModifyRawInfos',
|
url:'api/pda/baking/doModifyRawInfos',
|
||||||
data: {point_code: code, order_code: order, roll_type: type, is_baking: is, temperature: temperature, time: time}
|
data: {point_code: code, order_code: order, roll_type: type, is_baking: is, temperature: temperature, time: time, roll_code: roll}
|
||||||
})
|
})
|
||||||
export const bakingQuality = (code, quality) => request({
|
export const bakingQuality = (code, quality) => request({
|
||||||
url:'api/pda/baking/bakingQuality',
|
url:'api/pda/baking/bakingQuality',
|
||||||
|
|||||||
Reference in New Issue
Block a user