|
|
@@ -2,13 +2,6 @@
|
|
|
<div>
|
|
|
<!-- 左侧树形结构 -->
|
|
|
<el-container>
|
|
|
- <!-- <el-aside width="250px">
|
|
|
- <div class="JKWTree-tree">
|
|
|
- <h3>包装工序产量维护</h3>
|
|
|
- <el-tree :data="treeData" :props="defaultProps" highlight-current="true"
|
|
|
- @node-click="handleNodeClick"></el-tree>
|
|
|
- </div>
|
|
|
- </el-aside> -->
|
|
|
|
|
|
<layout-sider
|
|
|
:resize-directions="['right']"
|
|
|
@@ -33,9 +26,9 @@
|
|
|
<!-- 按钮区域 -->
|
|
|
<div class="gva-table-box">
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="positionvalue" placeholder="输入工单编号或产品名称" style="width: 180px;" />
|
|
|
+ <el-input v-model="positionvalue" placeholder="输入工单编号或产品名称" style="width: 180px;" />
|
|
|
<el-button type="primary" class="search" icon="search" @click="onSearch"></el-button>
|
|
|
- <el-button type="primary" class="bt" icon="plus" @click="onAdd">新增</el-button>
|
|
|
+ <el-button type="primary" class="bt" icon="plus" @click="onAdd">新增</el-button>
|
|
|
<!-- <el-button type="primary" class="bt" icon="search" @click="positioningVisible">定位</el-button> -->
|
|
|
<el-button type="primary" class="bt" icon="delete" @click="Del">删除</el-button>
|
|
|
<div style="margin-left: auto;">
|
|
|
@@ -46,14 +39,14 @@
|
|
|
<el-table ref="multipleTable" style="width: 100%" tooltip-effect="dark" :data="tableData" row-key="ID"
|
|
|
highlight-current-row="true" :cell-style="cellStyle" border @selection-change="handleSelectionChange"
|
|
|
:show-overflow-tooltip="true" @row-click="Click" @row-dblclick="doubleClick">
|
|
|
- <el-table-column type="selection" width="55" />
|
|
|
+ <el-table-column type="selection" width="55" />
|
|
|
<!-- 循环渲染列 -->
|
|
|
<el-table-column
|
|
|
v-for=" column in tableColumns "
|
|
|
:key="column.prop"
|
|
|
:prop="column.prop"
|
|
|
:label="column.label"
|
|
|
- :width="column.width"
|
|
|
+ :width="column.width"
|
|
|
sortable
|
|
|
show-overflow-tooltip="true"
|
|
|
/>
|
|
|
@@ -72,32 +65,32 @@
|
|
|
<el-form :model="formData" label-position="right" ref="elFormRef" :rules="rule" label-width="70px" >
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="日期" prop="name">
|
|
|
+ <el-form-item label="日期" prop="name">
|
|
|
<el-input type="date" max="9999-12-31" v-model="formData.sczl_rq" id="日期" @focus="rqHandleFocus()" @keydown="ent1($event)" style="width: 120px; " />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="24">
|
|
|
- <div style="width: 900px; margin-left: 40px;">
|
|
|
- <div style="margin-bottom: 5px;">
|
|
|
- <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >工单编号</span>
|
|
|
- <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >印件工序</span>
|
|
|
- <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >工序名称</span>
|
|
|
- <span style="display: inline-block; text-align: center; width: 295px; margin-right: 5px;" >印件名称</span>
|
|
|
- <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >包装产量</span>
|
|
|
- <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >每箱数量</span>
|
|
|
- <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >零头</span>
|
|
|
- </div>
|
|
|
- <div v-for="index in 6" :key="index">
|
|
|
- <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" v-model="formData['sczl_gdbh' + index]" :id="'sczl_gdbh' + index" @keydown="ent1($event, index.toString())" @blur="getGxMcsubmit($event, index.toString())" />
|
|
|
- <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" :readonly="true" :value="formData['sczl_yjGx' + index]" :id="'sczl_yjGx' + index" @keydown="ent1($event)"/>
|
|
|
- <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" :readonly="true" v-model="formData['sczl_gxmc' + index]" :id="'sczl_gxmc' + index" @keydown="ent1($event)"/>
|
|
|
- <el-input style="width: 295px; margin-right: 5px;margin-bottom: 5px;" :readonly="true" v-model="formData['Gd_cpmc' + index]" :id="'Gd_cpmc' + index" @keydown="ent1($event)"/>
|
|
|
- <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" v-model="formData['sczl_cl' + index]" :id="'sczl_cl' + index" @keydown="ent1($event)"/>
|
|
|
- <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" v-model="formData['sczl_PgCl' + index]" :id="'sczl_PgCl' + index" @keydown="ent1($event)"/>
|
|
|
- <el-input style="width: 95px;margin-bottom: 5px;" v-model="formData['sczl_clAdd' + index]" :id="'sczl_clAdd' + index" @keydown="ent1($event)"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <div style="width: 900px; margin-left: 40px;">
|
|
|
+ <div style="margin-bottom: 5px;">
|
|
|
+ <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >工单编号</span>
|
|
|
+ <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >印件工序</span>
|
|
|
+ <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >工序名称</span>
|
|
|
+ <span style="display: inline-block; text-align: center; width: 295px; margin-right: 5px;" >印件名称</span>
|
|
|
+ <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >包装产量</span>
|
|
|
+ <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >每箱数量</span>
|
|
|
+ <span style="display: inline-block; text-align: center; width: 95px; margin-right: 5px;" >零头</span>
|
|
|
+ </div>
|
|
|
+ <div v-for="index in 6" :key="index">
|
|
|
+ <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" placeholder="Enter回车" v-model="formData['sczl_gdbh' + index]" :id="'sczl_gdbh' + index" @keydown="ent1($event, index.toString())" @blur="getGxMcsubmit($event, index.toString())" />
|
|
|
+ <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" :readonly="true" :value="formData['sczl_yjGx' + index]" :id="'sczl_yjGx' + index" @keydown="ent1($event)"/>
|
|
|
+ <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" :readonly="true" v-model="formData['sczl_gxmc' + index]" :id="'sczl_gxmc' + index" @keydown="ent1($event)"/>
|
|
|
+ <el-input style="width: 295px; margin-right: 5px;margin-bottom: 5px;" :readonly="true" v-model="formData['Gd_cpmc' + index]" :id="'Gd_cpmc' + index" @keydown="ent1($event)"/>
|
|
|
+ <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" v-model="formData['sczl_cl' + index]" :id="'sczl_cl' + index" @keydown="ent1($event)"/>
|
|
|
+ <el-input style="width: 95px; margin-right: 5px;margin-bottom: 5px;" v-model="formData['sczl_PgCl' + index]" :id="'sczl_PgCl' + index" @keydown="ent1($event)"/>
|
|
|
+ <el-input style="width: 95px;margin-bottom: 5px;" v-model="formData['sczl_clAdd' + index]" :id="'sczl_clAdd' + index" @keydown="ent1($event)"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<!-- </el-scrollbar> -->
|
|
|
@@ -120,7 +113,7 @@
|
|
|
<el-button type="primary" @click="enterpositioning">确 定</el-button>
|
|
|
</el-dialog>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
<el-dialog v-model="dialogSelectVisible" title="选择"
|
|
|
destroy-on-close width="800px" >
|
|
|
<el-table tooltip-effect="dark" :data="selectData" row-key="ID"
|
|
|
@@ -130,18 +123,18 @@
|
|
|
<el-table-column prop="jyGx" label="检验工序" width="85" />
|
|
|
<el-table-column prop="Gy0_gxmc" label="工序名称" width="225" />
|
|
|
</el-table>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
- <el-dialog v-model="getGxMcshow"
|
|
|
- :before-close="closegetGxMcshow" title="选择"
|
|
|
- destroy-on-close width="600px"
|
|
|
+ <el-dialog v-model="getGxMcshow"
|
|
|
+ :before-close="closegetGxMcshow" title="选择"
|
|
|
+ destroy-on-close width="600px"
|
|
|
>
|
|
|
<el-table tooltip-effect="dark" :data="selectData"
|
|
|
row-key="ID" highlight-current-row="true"
|
|
|
border style="width:100%"
|
|
|
@row-dblclick="handleSelectClick"
|
|
|
- >
|
|
|
- <el-table-column prop="jyGx" label="" width="100" />
|
|
|
+ >
|
|
|
+ <el-table-column prop="jyGx" label="" width="100" />
|
|
|
<el-table-column prop="Gd_cpmc" label="" width="460" />
|
|
|
</el-table>
|
|
|
|
|
|
@@ -177,9 +170,9 @@ import { ElMessage, ElMessageBox, LAST_KEYS } from 'element-plus'
|
|
|
import { Search, Refresh, Download } from '@element-plus/icons-vue'
|
|
|
import { ref, reactive, nextTick, onMounted, onBeforeMount } from 'vue'
|
|
|
import { getPackingSideTable, getPackingTable } from '@/api/mes_api_gty/myapi'
|
|
|
-import { Layout, LayoutContent, LayoutHeader, LayoutSider } from '@arco-design/web-vue'
|
|
|
-import { useUserStore } from '@/pinia/modules/user'
|
|
|
-const userStore = useUserStore()
|
|
|
+import { Layout, LayoutContent, LayoutHeader, LayoutSider } from '@arco-design/web-vue'
|
|
|
+import { useUserStore } from '@/pinia/modules/user'
|
|
|
+const userStore = useUserStore()
|
|
|
const sys_id='['+userStore.userInfo.userName+'/'+userStore.userInfo.nickName+']'
|
|
|
defineOptions({
|
|
|
name: '06-packingDocuments'
|
|
|
@@ -222,18 +215,18 @@ const formData = ref({
|
|
|
sczl_yjGx3: '',
|
|
|
sczl_yjGx4: '',
|
|
|
sczl_yjGx5: '',
|
|
|
- sczl_yjGx6: '',
|
|
|
- sczl_gxmc1: '',
|
|
|
- sczl_gxmc2: '',
|
|
|
- sczl_gxmc3: '',
|
|
|
- sczl_gxmc4: '',
|
|
|
- sczl_gxmc5: '',
|
|
|
- sczl_gxmc6: '',
|
|
|
- Gd_cpmc1: '',
|
|
|
- Gd_cpmc2: '',
|
|
|
- Gd_cpmc3: '',
|
|
|
- Gd_cpmc4: '',
|
|
|
- Gd_cpmc5: '',
|
|
|
+ sczl_yjGx6: '',
|
|
|
+ sczl_gxmc1: '',
|
|
|
+ sczl_gxmc2: '',
|
|
|
+ sczl_gxmc3: '',
|
|
|
+ sczl_gxmc4: '',
|
|
|
+ sczl_gxmc5: '',
|
|
|
+ sczl_gxmc6: '',
|
|
|
+ Gd_cpmc1: '',
|
|
|
+ Gd_cpmc2: '',
|
|
|
+ Gd_cpmc3: '',
|
|
|
+ Gd_cpmc4: '',
|
|
|
+ Gd_cpmc5: '',
|
|
|
Gd_cpmc6: '',
|
|
|
sczl_cl1: '0.00',
|
|
|
sczl_cl2: '0.00',
|
|
|
@@ -255,53 +248,53 @@ const formData = ref({
|
|
|
sczl_clAdd6: '0',
|
|
|
UniqId:'000',
|
|
|
})
|
|
|
-const initFormData = () => {
|
|
|
- formData.value = {
|
|
|
- sczl_rq: '',
|
|
|
- sczl_gdbh1: '',
|
|
|
- sczl_gdbh2: '',
|
|
|
- sczl_gdbh3: '',
|
|
|
- sczl_gdbh4: '',
|
|
|
- sczl_gdbh5: '',
|
|
|
- sczl_gdbh6: '',
|
|
|
- sczl_yjGx1: '',
|
|
|
- sczl_yjGx2: '',
|
|
|
- sczl_yjGx3: '',
|
|
|
- sczl_yjGx4: '',
|
|
|
- sczl_yjGx5: '',
|
|
|
- sczl_yjGx6: '',
|
|
|
- sczl_gxmc1: '',
|
|
|
- sczl_gxmc2: '',
|
|
|
- sczl_gxmc3: '',
|
|
|
- sczl_gxmc4: '',
|
|
|
- sczl_gxmc5: '',
|
|
|
- sczl_gxmc6: '',
|
|
|
- Gd_cpmc1: '',
|
|
|
- Gd_cpmc2: '',
|
|
|
- Gd_cpmc3: '',
|
|
|
- Gd_cpmc4: '',
|
|
|
- Gd_cpmc5: '',
|
|
|
- Gd_cpmc6: '',
|
|
|
- sczl_cl1: '0.00',
|
|
|
- sczl_cl2: '0.00',
|
|
|
- sczl_cl3: '0.00',
|
|
|
- sczl_cl4: '0.00',
|
|
|
- sczl_cl5: '0.00',
|
|
|
- sczl_cl6: '0.00',
|
|
|
- sczl_PgCl1:'0',
|
|
|
- sczl_PgCl2: '0',
|
|
|
- sczl_PgCl3: '0',
|
|
|
- sczl_PgCl4: '0',
|
|
|
- sczl_PgCl5: '0',
|
|
|
- sczl_PgCl6: '0',
|
|
|
- sczl_clAdd1: '0',
|
|
|
- sczl_clAdd2: '0',
|
|
|
- sczl_clAdd3: '0',
|
|
|
- sczl_clAdd4: '0',
|
|
|
- sczl_clAdd5: '0',
|
|
|
- sczl_clAdd6: '0',
|
|
|
- UniqId:'000',
|
|
|
- }
|
|
|
+const initFormData = () => {
|
|
|
+ formData.value = {
|
|
|
+ sczl_rq: '',
|
|
|
+ sczl_gdbh1: '',
|
|
|
+ sczl_gdbh2: '',
|
|
|
+ sczl_gdbh3: '',
|
|
|
+ sczl_gdbh4: '',
|
|
|
+ sczl_gdbh5: '',
|
|
|
+ sczl_gdbh6: '',
|
|
|
+ sczl_yjGx1: '',
|
|
|
+ sczl_yjGx2: '',
|
|
|
+ sczl_yjGx3: '',
|
|
|
+ sczl_yjGx4: '',
|
|
|
+ sczl_yjGx5: '',
|
|
|
+ sczl_yjGx6: '',
|
|
|
+ sczl_gxmc1: '',
|
|
|
+ sczl_gxmc2: '',
|
|
|
+ sczl_gxmc3: '',
|
|
|
+ sczl_gxmc4: '',
|
|
|
+ sczl_gxmc5: '',
|
|
|
+ sczl_gxmc6: '',
|
|
|
+ Gd_cpmc1: '',
|
|
|
+ Gd_cpmc2: '',
|
|
|
+ Gd_cpmc3: '',
|
|
|
+ Gd_cpmc4: '',
|
|
|
+ Gd_cpmc5: '',
|
|
|
+ Gd_cpmc6: '',
|
|
|
+ sczl_cl1: '0.00',
|
|
|
+ sczl_cl2: '0.00',
|
|
|
+ sczl_cl3: '0.00',
|
|
|
+ sczl_cl4: '0.00',
|
|
|
+ sczl_cl5: '0.00',
|
|
|
+ sczl_cl6: '0.00',
|
|
|
+ sczl_PgCl1:'0',
|
|
|
+ sczl_PgCl2: '0',
|
|
|
+ sczl_PgCl3: '0',
|
|
|
+ sczl_PgCl4: '0',
|
|
|
+ sczl_PgCl5: '0',
|
|
|
+ sczl_PgCl6: '0',
|
|
|
+ sczl_clAdd1: '0',
|
|
|
+ sczl_clAdd2: '0',
|
|
|
+ sczl_clAdd3: '0',
|
|
|
+ sczl_clAdd4: '0',
|
|
|
+ sczl_clAdd5: '0',
|
|
|
+ sczl_clAdd6: '0',
|
|
|
+ UniqId:'000',
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 验证规则
|
|
|
@@ -416,237 +409,237 @@ const enterpositioning = async () => {
|
|
|
let sczl_rqValue=ref()
|
|
|
const getpickInfo = async (value) => {
|
|
|
|
|
|
- const response = await getInfo({UniqId:value});
|
|
|
- if (response.code === 0) {
|
|
|
- formData.value=response.data;
|
|
|
+ const response = await getInfo({UniqId:value});
|
|
|
+ if (response.code === 0) {
|
|
|
+ formData.value=response.data;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-//键盘 input框跳转
|
|
|
+
|
|
|
+//键盘 input框跳转
|
|
|
const ent1 = (event) => {
|
|
|
const inputs = document.getElementsByTagName('input');
|
|
|
const currentIndex = Array.from(inputs).indexOf(event.target);
|
|
|
- if (event.keyCode === 13 || event.keyCode === 40) { // Enter 或向下箭头
|
|
|
- if(event.target.id=='sczl_clAdd6'){
|
|
|
- ElMessageBox.confirm('数据存盘?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- enterDialog()
|
|
|
- })
|
|
|
+ if (event.keyCode === 13 || event.keyCode === 40) { // Enter 或向下箭头
|
|
|
+ if(event.target.id=='sczl_clAdd6'){
|
|
|
+ ElMessageBox.confirm('数据存盘?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ enterDialog()
|
|
|
+ })
|
|
|
}
|
|
|
for (let i = currentIndex + 1; i < inputs.length; i++) {
|
|
|
- if (!inputs[i].readOnly) {
|
|
|
- nextTick(()=>{
|
|
|
- inputs[i].focus();
|
|
|
- inputs[i].select();
|
|
|
+ if (!inputs[i].readOnly) {
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
})
|
|
|
break;
|
|
|
}
|
|
|
- }
|
|
|
- if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
- ent_sum()
|
|
|
+ }
|
|
|
+ if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
+ ent_sum()
|
|
|
}
|
|
|
} else if (event.keyCode === 38) { // 向上箭头
|
|
|
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
|
if (!inputs[i].readOnly) {
|
|
|
- nextTick(()=>{
|
|
|
- inputs[i].focus();
|
|
|
- inputs[i].select();
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
})
|
|
|
break;
|
|
|
}
|
|
|
- }
|
|
|
- if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
- ent_sum()
|
|
|
+ }
|
|
|
+ if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
+ ent_sum()
|
|
|
}
|
|
|
} else if (event.keyCode === 8) { // 删除箭头
|
|
|
if (event.target.selectionStart === 0) {
|
|
|
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
|
if (!inputs[i].readOnly) {
|
|
|
- nextTick(()=>{
|
|
|
- inputs[i].focus();
|
|
|
- inputs[i].setSelectionRange(0, 0);
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].setSelectionRange(0, 0);
|
|
|
})
|
|
|
break;
|
|
|
}
|
|
|
- }
|
|
|
- if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
- ent_sum()
|
|
|
+ }
|
|
|
+ if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
+ ent_sum()
|
|
|
}
|
|
|
}
|
|
|
} else if (event.keyCode === 37) { // 向左箭头
|
|
|
if (event.target.selectionStart === 0) {
|
|
|
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
|
if (!inputs[i].readOnly) {
|
|
|
- nextTick(()=>{
|
|
|
- inputs[i].focus();
|
|
|
- inputs[i].select();
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
})
|
|
|
break;
|
|
|
}
|
|
|
- }
|
|
|
- if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
- ent_sum()
|
|
|
+ }
|
|
|
+ if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
+ ent_sum()
|
|
|
}
|
|
|
}
|
|
|
- } else if (event.keyCode === 39) { // 向右箭头
|
|
|
- if(event.target.id=='sczl_clAdd6'){
|
|
|
- ElMessageBox.confirm('数据存盘?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- enterDialog()
|
|
|
- })
|
|
|
+ } else if (event.keyCode === 39) { // 向右箭头
|
|
|
+ if(event.target.id=='sczl_clAdd6'){
|
|
|
+ ElMessageBox.confirm('数据存盘?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ enterDialog()
|
|
|
+ })
|
|
|
}
|
|
|
if (event.target.selectionStart === event.target.value.length) {
|
|
|
for (let i = currentIndex + 1; i < inputs.length; i++) {
|
|
|
if (!inputs[i].readOnly) {
|
|
|
- nextTick(()=>{
|
|
|
- inputs[i].focus();
|
|
|
- inputs[i].select();
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
})
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
- ent_sum()
|
|
|
+ }
|
|
|
+ if(event.target.id.substring(0, 2)=='cl' || event.target.id.substring(0, 2)=='fp'){
|
|
|
+ ent_sum()
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-//追加字体颜色和不可输入
|
|
|
-const setColorReadonly = (id) => {
|
|
|
- const newInput = document.getElementById(id)
|
|
|
- newInput.style.color = 'red';
|
|
|
- newInput.setAttribute('readonly', true);
|
|
|
-}
|
|
|
-
|
|
|
-//追加字体颜色和可输入
|
|
|
-const unsetColorReadonly = (id) => {
|
|
|
- const newInput = document.getElementById(id)
|
|
|
- newInput.style.color = 'black';
|
|
|
- newInput.removeAttribute('readonly');
|
|
|
-}
|
|
|
-
|
|
|
-//日期获得焦点事件
|
|
|
-const rqHandleFocus = () =>{
|
|
|
- if(formData.value.sczl_rq==''){
|
|
|
- formData.value.sczl_rq = new Date().toISOString().split('T')[0]
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-//工单编号失去焦点事件
|
|
|
-const getGxMcshow = ref(false)
|
|
|
+}
|
|
|
+
|
|
|
+//追加字体颜色和不可输入
|
|
|
+const setColorReadonly = (id) => {
|
|
|
+ const newInput = document.getElementById(id)
|
|
|
+ newInput.style.color = 'red';
|
|
|
+ newInput.setAttribute('readonly', true);
|
|
|
+}
|
|
|
+
|
|
|
+//追加字体颜色和可输入
|
|
|
+const unsetColorReadonly = (id) => {
|
|
|
+ const newInput = document.getElementById(id)
|
|
|
+ newInput.style.color = 'black';
|
|
|
+ newInput.removeAttribute('readonly');
|
|
|
+}
|
|
|
+
|
|
|
+//日期获得焦点事件
|
|
|
+const rqHandleFocus = () =>{
|
|
|
+ if(formData.value.sczl_rq==''){
|
|
|
+ formData.value.sczl_rq = new Date().toISOString().split('T')[0]
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+//工单编号失去焦点事件
|
|
|
+const getGxMcshow = ref(false)
|
|
|
const selectData = reactive([])
|
|
|
-let tableIndex = 0
|
|
|
-
|
|
|
-const getGxMcsubmit = async (event, index) => {
|
|
|
- if(formData.value['sczl_gdbh'+index]!=''){
|
|
|
- const response = await getGxMc({gdbh: formData.value['sczl_gdbh'+index] })
|
|
|
- if (response.code === 0) {
|
|
|
- if(response.data.length==0){
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: '查无此编号的工单,请仔细检查后重新输入'
|
|
|
- })
|
|
|
- //设置输入框的值为空
|
|
|
- formData.value['sczl_gdbh'+index] = ''
|
|
|
- formData.value['Gd_cpmc'+index] = ''
|
|
|
- formData.value['sczl_yjGx'+index] = ''
|
|
|
- formData.value['sczl_gxmc'+index] = ''
|
|
|
- }else if(response.data.length==1){
|
|
|
- const { Gd_cpmc, Gy0_gxmc, jyGx } = response.data[0]
|
|
|
- formData.value['Gd_cpmc'+index] = Gd_cpmc
|
|
|
- formData.value['sczl_yjGx'+index] = jyGx
|
|
|
- formData.value['sczl_gxmc'+index] = Gy0_gxmc
|
|
|
- setColorReadonly('Gd_cpmc'+index);
|
|
|
- setColorReadonly('sczl_yjGx'+index);
|
|
|
- setColorReadonly('sczl_gxmc'+index);
|
|
|
- unsetColorReadonly('sczl_cl'+index);
|
|
|
- unsetColorReadonly('sczl_PgCl'+index);
|
|
|
- }else{
|
|
|
- selectData.splice(0, selectData.length, ...response.data)
|
|
|
- tableIndex = index
|
|
|
- getGxMcshow.value = true
|
|
|
- }
|
|
|
- }
|
|
|
- }else{
|
|
|
- formData.value['Gd_cpmc'+index] = ''
|
|
|
- formData.value['sczl_yjGx'+index] = ''
|
|
|
- formData.value['sczl_gxmc'+index] = ''
|
|
|
- formData.value['sczl_cl'+index] = '0.00'
|
|
|
- formData.value['sczl_PgCl'+index] = '0'
|
|
|
- setColorReadonly('sczl_cl'+index);
|
|
|
- setColorReadonly('sczl_PgCl'+index);
|
|
|
+let tableIndex = 0
|
|
|
+
|
|
|
+const getGxMcsubmit = async (event, index) => {
|
|
|
+ if(formData.value['sczl_gdbh'+index]!=''){
|
|
|
+ const response = await getGxMc({gdbh: formData.value['sczl_gdbh'+index] })
|
|
|
+ if (response.code === 0) {
|
|
|
+ if(response.data.length==0){
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '查无此编号的工单,请仔细检查后重新输入'
|
|
|
+ })
|
|
|
+ //设置输入框的值为空
|
|
|
+ formData.value['sczl_gdbh'+index] = ''
|
|
|
+ formData.value['Gd_cpmc'+index] = ''
|
|
|
+ formData.value['sczl_yjGx'+index] = ''
|
|
|
+ formData.value['sczl_gxmc'+index] = ''
|
|
|
+ }else if(response.data.length==1){
|
|
|
+ const { Gd_cpmc, Gy0_gxmc, jyGx } = response.data[0]
|
|
|
+ formData.value['Gd_cpmc'+index] = Gd_cpmc
|
|
|
+ formData.value['sczl_yjGx'+index] = jyGx
|
|
|
+ formData.value['sczl_gxmc'+index] = Gy0_gxmc
|
|
|
+ setColorReadonly('Gd_cpmc'+index);
|
|
|
+ setColorReadonly('sczl_yjGx'+index);
|
|
|
+ setColorReadonly('sczl_gxmc'+index);
|
|
|
+ unsetColorReadonly('sczl_cl'+index);
|
|
|
+ unsetColorReadonly('sczl_PgCl'+index);
|
|
|
+ }else{
|
|
|
+ selectData.splice(0, selectData.length, ...response.data)
|
|
|
+ tableIndex = index
|
|
|
+ getGxMcshow.value = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ formData.value['Gd_cpmc'+index] = ''
|
|
|
+ formData.value['sczl_yjGx'+index] = ''
|
|
|
+ formData.value['sczl_gxmc'+index] = ''
|
|
|
+ formData.value['sczl_cl'+index] = '0.00'
|
|
|
+ formData.value['sczl_PgCl'+index] = '0'
|
|
|
+ setColorReadonly('sczl_cl'+index);
|
|
|
+ setColorReadonly('sczl_PgCl'+index);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
// 处理选择框
|
|
|
const handleSelectClick = (row, column, event) => {
|
|
|
- const { Gd_cpmc, Gy0_gxmc, jyGx } = row
|
|
|
- formData.value['Gd_cpmc'+tableIndex] = Gd_cpmc
|
|
|
- formData.value['sczl_yjGx'+tableIndex] = jyGx
|
|
|
- formData.value['sczl_gxmc'+tableIndex] = Gy0_gxmc
|
|
|
- setColorReadonly('Gd_cpmc'+tableIndex);
|
|
|
- setColorReadonly('sczl_yjGx'+tableIndex);
|
|
|
- setColorReadonly('sczl_gxmc'+tableIndex);
|
|
|
- unsetColorReadonly('sczl_cl'+tableIndex);
|
|
|
+ const { Gd_cpmc, Gy0_gxmc, jyGx } = row
|
|
|
+ formData.value['Gd_cpmc'+tableIndex] = Gd_cpmc
|
|
|
+ formData.value['sczl_yjGx'+tableIndex] = jyGx
|
|
|
+ formData.value['sczl_gxmc'+tableIndex] = Gy0_gxmc
|
|
|
+ setColorReadonly('Gd_cpmc'+tableIndex);
|
|
|
+ setColorReadonly('sczl_yjGx'+tableIndex);
|
|
|
+ setColorReadonly('sczl_gxmc'+tableIndex);
|
|
|
+ unsetColorReadonly('sczl_cl'+tableIndex);
|
|
|
unsetColorReadonly('sczl_PgCl'+tableIndex);
|
|
|
getGxMcshow.value = false
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
// 更新数据
|
|
|
-const updateDetailData = async() => {
|
|
|
- const restoredData = {
|
|
|
- UniqId: lastCellValue,
|
|
|
- sczl_rq: formData.value.sczl_rq,
|
|
|
- sczl_gdbh1: formData.value.sczl_gdbh1,
|
|
|
- sczl_gdbh2: formData.value.sczl_gdbh2,
|
|
|
- sczl_gdbh3: formData.value.sczl_gdbh3,
|
|
|
- sczl_gdbh4: formData.value.sczl_gdbh4,
|
|
|
- sczl_gdbh5: formData.value.sczl_gdbh5,
|
|
|
- sczl_gdbh6: formData.value.sczl_gdbh6,
|
|
|
- sczl_yjGx1: formData.value.sczl_yjGx1,
|
|
|
- sczl_yjGx2: formData.value.sczl_yjGx2,
|
|
|
- sczl_yjGx3: formData.value.sczl_yjGx3,
|
|
|
- sczl_yjGx4: formData.value.sczl_yjGx4,
|
|
|
- sczl_yjGx5: formData.value.sczl_yjGx5,
|
|
|
- sczl_yjGx6: formData.value.sczl_yjGx6,
|
|
|
- sczl_gxmc1: formData.value.sczl_gxmc1,
|
|
|
- sczl_gxmc2: formData.value.sczl_gxmc2,
|
|
|
- sczl_gxmc3: formData.value.sczl_gxmc3,
|
|
|
- sczl_gxmc4: formData.value.sczl_gxmc4,
|
|
|
- sczl_gxmc5: formData.value.sczl_gxmc5,
|
|
|
- sczl_gxmc6: formData.value.sczl_yjGx6,
|
|
|
- sczl_cl1: formData.value.sczl_cl1,
|
|
|
- sczl_cl2: formData.value.sczl_cl2,
|
|
|
- sczl_cl3: formData.value.sczl_cl3,
|
|
|
- sczl_cl4: formData.value.sczl_cl4,
|
|
|
- sczl_cl5: formData.value.sczl_cl5,
|
|
|
- sczl_cl6: formData.value.sczl_cl6,
|
|
|
- sczl_PgCl1:formData.value.sczl_PgCl1,
|
|
|
- sczl_PgCl2: formData.value.sczl_PgCl2,
|
|
|
- sczl_PgCl3: formData.value.sczl_PgCl3,
|
|
|
- sczl_PgCl4: formData.value.sczl_PgCl4,
|
|
|
- sczl_PgCl5: formData.value.sczl_PgCl5,
|
|
|
- sczl_PgCl6: formData.value.sczl_PgCl6,
|
|
|
- Gd_cpmc1: formData.value.Gd_cpmc1,
|
|
|
- Gd_cpmc3: formData.value.Gd_cpmc2,
|
|
|
- Gd_cpmc4: formData.value.Gd_cpmc3,
|
|
|
- Gd_cpmc5: formData.value.Gd_cpmc4,
|
|
|
- Gd_cpmc6: formData.value.Gd_cpmc5,
|
|
|
- sczl_clAdd1: formData.value.sczl_clAdd1,
|
|
|
- sczl_clAdd2: formData.value.sczl_clAdd2,
|
|
|
- sczl_clAdd3: formData.value.sczl_clAdd3,
|
|
|
- sczl_clAdd4: formData.value.sczl_clAdd4,
|
|
|
- sczl_clAdd5:formData.value.sczl_clAdd5,
|
|
|
- sczl_clAdd6: formData.value.sczl_clAdd6,
|
|
|
- sys_id:sys_id,
|
|
|
+const updateDetailData = async() => {
|
|
|
+ const restoredData = {
|
|
|
+ UniqId: lastCellValue,
|
|
|
+ sczl_rq: formData.value.sczl_rq,
|
|
|
+ sczl_gdbh1: formData.value.sczl_gdbh1,
|
|
|
+ sczl_gdbh2: formData.value.sczl_gdbh2,
|
|
|
+ sczl_gdbh3: formData.value.sczl_gdbh3,
|
|
|
+ sczl_gdbh4: formData.value.sczl_gdbh4,
|
|
|
+ sczl_gdbh5: formData.value.sczl_gdbh5,
|
|
|
+ sczl_gdbh6: formData.value.sczl_gdbh6,
|
|
|
+ sczl_yjGx1: formData.value.sczl_yjGx1,
|
|
|
+ sczl_yjGx2: formData.value.sczl_yjGx2,
|
|
|
+ sczl_yjGx3: formData.value.sczl_yjGx3,
|
|
|
+ sczl_yjGx4: formData.value.sczl_yjGx4,
|
|
|
+ sczl_yjGx5: formData.value.sczl_yjGx5,
|
|
|
+ sczl_yjGx6: formData.value.sczl_yjGx6,
|
|
|
+ sczl_gxmc1: formData.value.sczl_gxmc1,
|
|
|
+ sczl_gxmc2: formData.value.sczl_gxmc2,
|
|
|
+ sczl_gxmc3: formData.value.sczl_gxmc3,
|
|
|
+ sczl_gxmc4: formData.value.sczl_gxmc4,
|
|
|
+ sczl_gxmc5: formData.value.sczl_gxmc5,
|
|
|
+ sczl_gxmc6: formData.value.sczl_yjGx6,
|
|
|
+ sczl_cl1: formData.value.sczl_cl1,
|
|
|
+ sczl_cl2: formData.value.sczl_cl2,
|
|
|
+ sczl_cl3: formData.value.sczl_cl3,
|
|
|
+ sczl_cl4: formData.value.sczl_cl4,
|
|
|
+ sczl_cl5: formData.value.sczl_cl5,
|
|
|
+ sczl_cl6: formData.value.sczl_cl6,
|
|
|
+ sczl_PgCl1:formData.value.sczl_PgCl1,
|
|
|
+ sczl_PgCl2: formData.value.sczl_PgCl2,
|
|
|
+ sczl_PgCl3: formData.value.sczl_PgCl3,
|
|
|
+ sczl_PgCl4: formData.value.sczl_PgCl4,
|
|
|
+ sczl_PgCl5: formData.value.sczl_PgCl5,
|
|
|
+ sczl_PgCl6: formData.value.sczl_PgCl6,
|
|
|
+ Gd_cpmc1: formData.value.Gd_cpmc1,
|
|
|
+ Gd_cpmc3: formData.value.Gd_cpmc2,
|
|
|
+ Gd_cpmc4: formData.value.Gd_cpmc3,
|
|
|
+ Gd_cpmc5: formData.value.Gd_cpmc4,
|
|
|
+ Gd_cpmc6: formData.value.Gd_cpmc5,
|
|
|
+ sczl_clAdd1: formData.value.sczl_clAdd1,
|
|
|
+ sczl_clAdd2: formData.value.sczl_clAdd2,
|
|
|
+ sczl_clAdd3: formData.value.sczl_clAdd3,
|
|
|
+ sczl_clAdd4: formData.value.sczl_clAdd4,
|
|
|
+ sczl_clAdd5:formData.value.sczl_clAdd5,
|
|
|
+ sczl_clAdd6: formData.value.sczl_clAdd6,
|
|
|
+ sys_id:sys_id,
|
|
|
}
|
|
|
|
|
|
if(ADD.value=='新增'){
|
|
|
@@ -656,13 +649,13 @@ const updateDetailData = async() => {
|
|
|
ElMessage({
|
|
|
type: 'success',
|
|
|
message: '新增成功',
|
|
|
- })
|
|
|
- dialogFormVisible.value = false
|
|
|
- //刷新侧边栏
|
|
|
- getTabdata()
|
|
|
- if(params.date != ''){
|
|
|
- //刷新页面
|
|
|
- getTableData()
|
|
|
+ })
|
|
|
+ dialogFormVisible.value = false
|
|
|
+ //刷新侧边栏
|
|
|
+ getTabdata()
|
|
|
+ if(params.date != ''){
|
|
|
+ //刷新页面
|
|
|
+ getTableData()
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
@@ -678,37 +671,37 @@ const updateDetailData = async() => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-const GxMcdel = () => {
|
|
|
- if(typeof(lastCellValue)=='object'){
|
|
|
- ElMessage({
|
|
|
- type: 'warning',
|
|
|
- message: '未选中记录',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- ElMessageBox.confirm(
|
|
|
- `确认删除这条数据么?`,
|
|
|
- '警告',
|
|
|
- {
|
|
|
- confirmButtonText: '确认',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }
|
|
|
- ).then(async() => {
|
|
|
- const response = await del({UniqId:lastCellValue});
|
|
|
- if (response.code === 0) {
|
|
|
- ElMessage({
|
|
|
- type: 'success',
|
|
|
- message: '删除成功',
|
|
|
- })
|
|
|
- //刷新侧边栏
|
|
|
- getTabdata()
|
|
|
- getTableData()
|
|
|
- }
|
|
|
+const GxMcdel = () => {
|
|
|
+ if(typeof(lastCellValue)=='object'){
|
|
|
+ ElMessage({
|
|
|
+ type: 'warning',
|
|
|
+ message: '未选中记录',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ `确认删除这条数据么?`,
|
|
|
+ '警告',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }
|
|
|
+ ).then(async() => {
|
|
|
+ const response = await del({UniqId:lastCellValue});
|
|
|
+ if (response.code === 0) {
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功',
|
|
|
+ })
|
|
|
+ //刷新侧边栏
|
|
|
+ getTabdata()
|
|
|
+ getTableData()
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
-}
|
|
|
+}
|
|
|
|
|
|
// 搜索
|
|
|
function onSearch() {
|
|
|
@@ -798,11 +791,11 @@ const positioningVisible = () => {
|
|
|
const ADD=ref('0')
|
|
|
//新增
|
|
|
function onAdd() {
|
|
|
- ADD.value='新增'
|
|
|
- type.value = 'create'
|
|
|
- // if(typeof(lastCellValue)=='number'){
|
|
|
- // getpickInfo(lastCellValue)
|
|
|
- // }
|
|
|
+ ADD.value='新增'
|
|
|
+ type.value = 'create'
|
|
|
+ // if(typeof(lastCellValue)=='number'){
|
|
|
+ // getpickInfo(lastCellValue)
|
|
|
+ // }
|
|
|
initFormData()
|
|
|
dialogFormVisible.value = true
|
|
|
// Productionadd()
|
|
|
@@ -842,53 +835,53 @@ const closeDialog = () => {
|
|
|
}
|
|
|
// 弹窗确定
|
|
|
const enterDialog = async () => {
|
|
|
- ElMessageBox.confirm('数据存盘?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
-
|
|
|
- if(formData.value.sczl_rq==''){
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: '请填写日期'
|
|
|
- });
|
|
|
- document.getElementById('日期').focus()
|
|
|
- document.getElementById('日期').select()
|
|
|
- return;
|
|
|
- }
|
|
|
- if(formData.value.sczl_gdbh1=='' && formData.value.sczl_gdbh2=='' && formData.value.sczl_gdbh3=='' &&
|
|
|
- formData.value.sczl_gdbh4=='' && formData.value.sczl_gdbh5=='' && formData.value.sczl_gdbh6==''){
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: '请填写工单编号'
|
|
|
- });
|
|
|
- document.getElementById('sczl_gdbh1').focus()
|
|
|
- document.getElementById('sczl_gdbh1').select()
|
|
|
- return;
|
|
|
- }
|
|
|
- if(parseFloat(formData.value.sczl_cl1)==0 && parseFloat(formData.value.sczl_cl2)==0 && parseFloat(formData.value.sczl_cl3)==0 &&
|
|
|
- parseFloat(formData.value.sczl_cl4)==0 && parseFloat(formData.value.sczl_cl5)==0 && parseFloat(formData.value.sczl_cl6)==0){
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: '请填写包装产量'
|
|
|
- });
|
|
|
- document.getElementById('sczl_cl1').focus()
|
|
|
- document.getElementById('sczl_cl1').select()
|
|
|
- return;
|
|
|
- }
|
|
|
- if(parseFloat(formData.value.sczl_PgCl1)==0 && parseFloat(formData.value.sczl_PgCl2)==0 && parseFloat(formData.value.sczl_PgCl3)==0 &&
|
|
|
- parseFloat(formData.value.sczl_PgCl4)==0 && parseFloat(formData.value.sczl_PgCl5)==0 && parseFloat(formData.value.sczl_PgCl6)==0){
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: '请填写每箱数量'
|
|
|
- });
|
|
|
- document.getElementById('sczl_PgCl1').focus()
|
|
|
- document.getElementById('sczl_PgCl1').select()
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- updateDetailData()
|
|
|
+ ElMessageBox.confirm('数据存盘?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+
|
|
|
+ if(formData.value.sczl_rq==''){
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '请填写日期'
|
|
|
+ });
|
|
|
+ document.getElementById('日期').focus()
|
|
|
+ document.getElementById('日期').select()
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(formData.value.sczl_gdbh1=='' && formData.value.sczl_gdbh2=='' && formData.value.sczl_gdbh3=='' &&
|
|
|
+ formData.value.sczl_gdbh4=='' && formData.value.sczl_gdbh5=='' && formData.value.sczl_gdbh6==''){
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '请填写工单编号'
|
|
|
+ });
|
|
|
+ document.getElementById('sczl_gdbh1').focus()
|
|
|
+ document.getElementById('sczl_gdbh1').select()
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(parseFloat(formData.value.sczl_cl1)==0 && parseFloat(formData.value.sczl_cl2)==0 && parseFloat(formData.value.sczl_cl3)==0 &&
|
|
|
+ parseFloat(formData.value.sczl_cl4)==0 && parseFloat(formData.value.sczl_cl5)==0 && parseFloat(formData.value.sczl_cl6)==0){
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '请填写包装产量'
|
|
|
+ });
|
|
|
+ document.getElementById('sczl_cl1').focus()
|
|
|
+ document.getElementById('sczl_cl1').select()
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(parseFloat(formData.value.sczl_PgCl1)==0 && parseFloat(formData.value.sczl_PgCl2)==0 && parseFloat(formData.value.sczl_PgCl3)==0 &&
|
|
|
+ parseFloat(formData.value.sczl_PgCl4)==0 && parseFloat(formData.value.sczl_PgCl5)==0 && parseFloat(formData.value.sczl_PgCl6)==0){
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '请填写每箱数量'
|
|
|
+ });
|
|
|
+ document.getElementById('sczl_PgCl1').focus()
|
|
|
+ document.getElementById('sczl_PgCl1').select()
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ updateDetailData()
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -896,7 +889,7 @@ let lastCellValue=ref()
|
|
|
// 双击表格操作
|
|
|
function doubleClick(row) {
|
|
|
type.value = 'update';
|
|
|
- getpickInfo(row['UniqId'])
|
|
|
+ getpickInfo(row['UniqId'])
|
|
|
dialogFormVisible.value = true
|
|
|
}
|
|
|
// 单击表格操作
|
|
|
@@ -941,7 +934,7 @@ onMounted(async () => {
|
|
|
background: #ff80ff !important;
|
|
|
/* 背景颜色 */
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|
|
|
<style scoped>
|
|
|
:deep(.el-table td .cell) {
|
|
|
line-height: 20px !important;
|