fix:解决部分遗漏问题

This commit is contained in:
zhangxuanming 2025-01-14 16:35:51 +08:00
parent ef9e153b46
commit 29a63f2a6d
10 changed files with 35 additions and 34 deletions

View File

@ -72,7 +72,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -87,7 +87,7 @@
<el-row > <el-row >
<el-col :span="12"> <el-col :span="12">
<el-form-item label="顺序编号" prop="orderNum"> <el-form-item label="顺序编号" prop="orderNum">
<el-input-number :min="1" v-model="form.orderNum" placeholder="请输入顺序编号" /> <el-input-number :min="1" :max="999999" v-model="form.orderNum" placeholder="请输入顺序编号" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">

View File

@ -98,7 +98,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="序号" prop="orderNum"> <el-form-item label="序号" prop="orderNum">
<el-input-number :min="1" v-model="form.orderNum" placeholder="请输入序号" /> <el-input-number :min="1" :max="999999" v-model="form.orderNum" placeholder="请输入序号" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">

View File

@ -244,7 +244,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="检测数量" prop="quantityCheck"> <el-form-item label="检测数量" prop="quantityCheck">
<el-input v-model="form.quantityCheck" placeholder="请输入检测数量" /> <el-input-number v-model="form.quantityCheck" :max="99999999" placeholder="请输入检测数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -302,29 +302,29 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="不合格数" prop="quantityUnqualified"> <el-form-item label="不合格数" prop="quantityUnqualified">
<el-input-number v-model="form.quantityUnqualified" max="99999999" placeholder="请输入不合格数" /> <el-input-number v-model="form.quantityUnqualified" :max="99999999" placeholder="请输入不合格数" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="合格品数量" prop="quantityQualified"> <el-form-item label="合格品数量" prop="quantityQualified">
<el-input-number v-model="form.quantityQualified" max="99999999" placeholder="请输入合格品数量" /> <el-input-number v-model="form.quantityQualified" :max="99999999" placeholder="请输入合格品数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="致命缺陷数量" prop="crQuantity"> <el-form-item label="致命缺陷数量" prop="crQuantity">
<el-input-number v-model="form.crQuantity" max="99999999" placeholder="请输入致命缺陷数量" /> <el-input-number v-model="form.crQuantity" :max="99999999" placeholder="请输入致命缺陷数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="严重缺陷数量" prop="majQuantity"> <el-form-item label="严重缺陷数量" prop="majQuantity">
<el-input-number v-model="form.majQuantity" max="99999999" placeholder="请输入严重缺陷数量" /> <el-input-number v-model="form.majQuantity" :max="99999999" placeholder="请输入严重缺陷数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="轻微缺陷数量" prop="minQuantity"> <el-form-item label="轻微缺陷数量" prop="minQuantity">
<el-input-number v-model="form.minQuantity" max="99999999" placeholder="请输入轻微缺陷数量" /> <el-input-number v-model="form.minQuantity" :max="99999999" placeholder="请输入轻微缺陷数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -117,29 +117,29 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="不合格数" prop="quantityUnqualified"> <el-form-item label="不合格数" prop="quantityUnqualified">
<el-input-number v-model="form.quantityUnqualified" max="99999999" placeholder="请输入不合格数" /> <el-input-number v-model="form.quantityUnqualified" :max="99999999" placeholder="请输入不合格数" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="合格品数量" prop="quantityQualified"> <el-form-item label="合格品数量" prop="quantityQualified">
<el-input-number v-model="form.quantityQualified" max="99999999" placeholder="请输入合格品数量" /> <el-input-number v-model="form.quantityQualified" :max="99999999" placeholder="请输入合格品数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="致命缺陷数量" prop="crQuantity"> <el-form-item label="致命缺陷数量" prop="crQuantity">
<el-input-number v-model="form.crQuantity" max="99999999" placeholder="请输入致命缺陷数量" /> <el-input-number v-model="form.crQuantity" :max="99999999" placeholder="请输入致命缺陷数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="严重缺陷数量" prop="majQuantity"> <el-form-item label="严重缺陷数量" prop="majQuantity">
<el-input-number v-model="form.majQuantity" max="99999999" placeholder="请输入严重缺陷数量" /> <el-input-number v-model="form.majQuantity" :max="99999999" placeholder="请输入严重缺陷数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="轻微缺陷数量" prop="minQuantity"> <el-form-item label="轻微缺陷数量" prop="minQuantity">
<el-input-number v-model="form.minQuantity" max="99999999" placeholder="请输入轻微缺陷数量" /> <el-input-number v-model="form.minQuantity" :max="99999999" placeholder="请输入轻微缺陷数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -106,7 +106,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="标准值" prop="standerVal"> <el-form-item label="标准值" prop="standerVal">
<el-input-number v-model="form.standerVal" max="99999999" placeholder="请输入标准值" /> <el-input-number v-model="form.standerVal" :max="99999999" placeholder="请输入标准值" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">

View File

@ -110,7 +110,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="到货数量" prop="quantityArrival"> <el-form-item label="到货数量" prop="quantityArrival">
<el-input-number v-model="form.quantityArrival" max="99999999" placeholder="请输入到货数量" /> <el-input-number v-model="form.quantityArrival" :max="99999999" placeholder="请输入到货数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -92,7 +92,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="入库数量" prop="quantityRecived"> <el-form-item label="入库数量" prop="quantityRecived">
<el-input-number :min="0.01" v-model="form.quantityRecived" placeholder="请输入入库数量" /> <el-input-number :min="0.01" :max="99999999" v-model="form.quantityRecived" placeholder="请输入入库数量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">

View File

@ -201,7 +201,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="箱长度" prop="packageLength"> <el-form-item label="箱长度" prop="packageLength">
<el-input v-model="form.packageLength" max="999999999" placeholder="请输入箱长度" class="input-with-select"> <el-input v-model="form.packageLength" :max="999999999" placeholder="请输入箱长度" class="input-with-select">
<el-select slot="append" class="width" v-model="form.sizeUnit"> <el-select slot="append" class="width" v-model="form.sizeUnit">
<el-option <el-option
v-for="item in measureOptions" v-for="item in measureOptions"

View File

@ -520,6 +520,7 @@ export default {
} }
}, },
handleSelectClient(){ handleSelectClient(){
this.$refs["form"].clearValidate()
this.$refs.clientSelect.handleOpen(this.form.clientId) this.$refs.clientSelect.handleOpen(this.form.clientId)
}, },
// //

View File

@ -18,7 +18,7 @@
icon="el-icon-edit" icon="el-icon-edit"
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['mes:wm:rtissue:edit']" v-hasPermi="['mes:wm:rtissue:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
@ -37,7 +37,7 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="rtissuelineList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="rtissuelineList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="物料编码" width="120px" align="center" prop="itemCode" /> <el-table-column label="物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="物料名称" width="150px" align="center" prop="itemName" /> <el-table-column label="物料名称" width="150px" align="center" prop="itemName" />
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/> <el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
@ -68,7 +68,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -124,7 +124,7 @@
:options="warehouseOptions" :options="warehouseOptions"
:props="warehouseProps" :props="warehouseProps"
@change="handleWarehouseChanged" @change="handleWarehouseChanged"
> >
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -231,7 +231,7 @@ export default {
}); });
}, },
getWarehouseList(){ getWarehouseList(){
getTreeList().then( response =>{ getTreeList().then( response =>{
if(response.data){ if(response.data){
this.warehouseOptions = response.data.filter((el) =>{ this.warehouseOptions = response.data.filter((el) =>{
return el.warehouseCode.indexOf('VIR') == -1; return el.warehouseCode.indexOf('VIR') == -1;
@ -239,12 +239,12 @@ export default {
} }
this.warehouseOptions.map(w =>{ this.warehouseOptions.map(w =>{
w.children.map(l =>{ w.children.map(l =>{
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
l.children = JSON.parse(lstr); l.children = JSON.parse(lstr);
}); });
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName'); let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
w.children = JSON.parse(wstr); w.children = JSON.parse(wstr);
}); });
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName'); let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
@ -319,9 +319,9 @@ export default {
const lineId = row.lineId || this.ids const lineId = row.lineId || this.ids
getRtissueline(lineId).then(response => { getRtissueline(lineId).then(response => {
this.form = response.data; this.form = response.data;
this.warehouseInfo[0] = response.data.warehouseId; this.warehouseInfo[0] = response.data.warehouseId;
this.warehouseInfo[1] = response.data.locationId; this.warehouseInfo[1] = response.data.locationId;
this.warehouseInfo[2] = response.data.areaId; this.warehouseInfo[2] = response.data.areaId;
this.open = true; this.open = true;
this.title = "修改生产退料单行"; this.title = "修改生产退料单行";
}); });
@ -374,19 +374,19 @@ export default {
this.form.itemCode = obj.itemCode; this.form.itemCode = obj.itemCode;
this.form.itemName = obj.itemName; this.form.itemName = obj.itemName;
this.form.specification = obj.specification; this.form.specification = obj.specification;
this.form.unitOfMeasure = obj.unitOfMeasure; this.form.unitOfMeasure = obj.unitOfMeasure;
this.form.batchCode = obj.batchCode; this.form.batchCode = obj.batchCode;
this.form.quantityRt = obj.quantityOnhand; this.form.quantityRt = obj.quantityOnhand;
this.form.quantityMax = obj.quantityOnhand; this.form.quantityMax = obj.quantityOnhand;
} }
}, },
// //
handleWarehouseChanged(obj){ handleWarehouseChanged(obj){
if(obj !=null){ if(obj !=null){
debugger; debugger;
this.form.warehouseId = obj[0]; this.form.warehouseId = obj[0];
this.form.locationId = obj[1]; this.form.locationId = obj[1];
this.form.areaId = obj[2]; this.form.areaId = obj[2];
} }
}, },
} }