产线下料

This commit is contained in:
2025-12-31 15:59:21 +08:00
parent ba40fcdf86
commit 7a46c8d845
5 changed files with 10 additions and 9 deletions

View File

@@ -23,7 +23,7 @@
"button.force-complete": "强制完成", "button.force-complete": "强制完成",
"button.enter": "进入", "button.enter": "进入",
"button.quit": "退出", "button.quit": "退出",
"button.scxl": "产线下料", "button.zyps": "作业配送",
"button.zjps": "质检配送", "button.zjps": "质检配送",
"button.zjxl": "质检下料", "button.zjxl": "质检下料",
"button.control": "管制", "button.control": "管制",

View File

@@ -23,7 +23,7 @@
"button.force-complete": "強制完了", "button.force-complete": "強制完了",
"button.enter": "に入る", "button.enter": "に入る",
"button.quit": "終了", "button.quit": "終了",
"button.scxl": "ラインダウン", "button.zyps": "作業配送",
"button.zjps": "品質検査配送", "button.zjps": "品質検査配送",
"button.zjxl": "品質検査で材料を落とす", "button.zjxl": "品質検査で材料を落とす",
"button.control": "せいぎょ", "button.control": "せいぎょ",

View File

@@ -23,7 +23,7 @@
"button.force-complete": "强制完成", "button.force-complete": "强制完成",
"button.enter": "进入", "button.enter": "进入",
"button.quit": "退出", "button.quit": "退出",
"button.scxl": "产线下料", "button.zyps": "作业配送",
"button.zjps": "质检配送", "button.zjps": "质检配送",
"button.zjxl": "质检下料", "button.zjxl": "质检下料",
"button.control": "管制", "button.control": "管制",

View File

@@ -61,9 +61,9 @@
</view> </view>
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
<!-- <button class="zd-col-22 button-primary" :class="{'button-info': !val1 || !dataList.length || !index}" :disabled="disabled" @tap="_productBlanking">{{$t('button.confirm-down-material')}}</button> --> <!-- <button class="zd-col-22 button-primary" :class="{'button-info': !val1 || !dataList.length || !index}" :disabled="disabled" @tap="_productBlanking">{{$t('button.confirm-down-material')}}</button> -->
<button class="zd-col-7 button-primary" :class="{'button-info': !val1 || !dataList.length}" :disabled="disabled" @tap="handleConfirm('1')">{{$t('button.scxl')}}</button> <button class="zd-col-7 button-primary" :class="{'button-info': !val1 || !dataList.length}" :disabled="disabled" @tap="handleConfirm('1', $t('button.zyps'))">{{$t('button.zyps')}}</button>
<button class="zd-col-8 button-default" :class="{'button-info': !val1 || !dataList.length}" :disabled="disabled" @tap="handleConfirm('2')">{{$t('button.zjps')}}</button> <button class="zd-col-8 button-default" :class="{'button-info': !val1 || !dataList.length}" :disabled="disabled" @tap="handleConfirm('2', $t('button.zjps'))">{{$t('button.zjps')}}</button>
<button class="zd-col-8 button-default" :class="{'button-info': !val1 || !index || !dataList.length}" :disabled="disabled" @tap="handleConfirm('3')">{{$t('button.zjxl')}}</button> <button class="zd-col-8 button-default" :class="{'button-info': !val1 || !index || !dataList.length}" :disabled="disabled" @tap="handleConfirm('3', $t('button.zjxl'))">{{$t('button.zjxl')}}</button>
</view> </view>
</view> </view>
</template> </template>
@@ -184,7 +184,7 @@
this.currentData = {} this.currentData = {}
this.disabled = false this.disabled = false
}, },
async handleConfirm(type) { async handleConfirm(type, name) {
if (type === '3') { if (type === '3') {
if (!this.val1 || !this.dataList.length || !this.index) { if (!this.val1 || !this.dataList.length || !this.index) {
return return
@@ -194,7 +194,7 @@
return return
} }
} }
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?") const isConfirmed = await confirmAction("确认操作", "确定要执行" + name + "吗?")
if (isConfirmed) { if (isConfirmed) {
this._productBlanking(type) this._productBlanking(type)
} }

View File

@@ -207,7 +207,8 @@
let currObj = { let currObj = {
mid: 'mid_' + Date.now() + '_' + Math.random().toString(36).substr(2, 9), mid: 'mid_' + Date.now() + '_' + Math.random().toString(36).substr(2, 9),
container_code: '', container_code: '',
material_name: '物料', material_code: '0001542',
material_name: 'ET02560/T (1250X1000)',
pscn: '', pscn: '',
qty: '1', qty: '1',
measure_unit_id: '单位' measure_unit_id: '单位'