问题修改

dev-scheduling
jinna 2 days ago
parent a0c661ae69
commit daa130c577
  1. 28
      src/views/costStatistics/index.vue
  2. 4
      src/views/oem/oemOrderSettlement/components/settlementAnomaly.vue
  3. 16
      src/views/productionTesting/productionQuality.vue
  4. 2
      src/views/qualityManagement/inspectionArchiving/ERecord/printDialog.vue

@ -117,7 +117,7 @@ export default {
tip: false, tip: false,
simplePage: true, simplePage: true,
searchShow: true, searchShow: true,
searchMenuSpan: 18, searchMenuSpan: 12,
searchIcon: true, searchIcon: true,
searchIndex: 3, searchIndex: 3,
tree: false, tree: false,
@ -178,6 +178,18 @@ export default {
overHidden: true, overHidden: true,
width:80, width:80,
}, },
{
label:"交付中心",
prop:"jcId",
type:'select',
dicUrl:"/api/blade-system/dict/dictionary?code=workCenterJfCenter",
props:{
label:"dictValue",
value:"dictKey"
},
search: true,
width:110
},
{ {
label: '制造费用(元)', label: '制造费用(元)',
prop: 'productCost', prop: 'productCost',
@ -214,6 +226,15 @@ export default {
sortable: 'custom', sortable: 'custom',
overHidden: true, overHidden: true,
}, },
{
label:'erp作业中心材料费用(元)',
prop:'erpWorkCenterMaterialCost',
search:false,
width: 180,
sortable: false,
sortable: 'custom',
overHidden: true,
},
{ {
label: '单位成本(元)', label: '单位成本(元)',
prop: 'unitCost', prop: 'unitCost',
@ -586,7 +607,11 @@ export default {
size:this.page.pageSize, size:this.page.pageSize,
...this.query ...this.query
}).then(res =>{ }).then(res =>{
res.data.data.records.map(item =>{
item.jcId = item.jcId != -1 ? item.jcId + '' : ''
})
this.data = res.data.data.records this.data = res.data.data.records
console.log('data---------',this.data)
this.page.total = res.data.data.total this.page.total = res.data.data.total
this.loading = false this.loading = false
@ -599,6 +624,7 @@ export default {
workCenterId:this.data[0].workCenterId workCenterId:this.data[0].workCenterId
}).then(res =>{ }).then(res =>{
console.log('res---------',res) console.log('res---------',res)
this.detailData = res.data.data this.detailData = res.data.data
this.$refs.crud.setCurrentRow(this.data[0]); this.$refs.crud.setCurrentRow(this.data[0]);
// this.handleCurrentRowChange(this.data[0]); // this.handleCurrentRowChange(this.data[0]);

@ -566,7 +566,9 @@ export default {
price: this.form && this.form.price, price: this.form && this.form.price,
postPlatingStorageTimeStart:this.query && this.query.putStoreTime && this.query.putStoreTime.length != 0 && this.query.putStoreTime[0], postPlatingStorageTimeStart:this.query && this.query.putStoreTime && this.query.putStoreTime.length != 0 && this.query.putStoreTime[0],
postPlatingStorageTimeEnd:this.query && this.query.putStoreTime && this.query.putStoreTime.length != 0 && this.query.putStoreTime[1], postPlatingStorageTimeEnd:this.query && this.query.putStoreTime && this.query.putStoreTime.length != 0 && this.query.putStoreTime[1],
memo:this.query && this.query.memo && this.query.memo.length != 0 && this.query.memo.join(';'), memo:this.query && this.query.memo && typeof(this.query.memo) == 'object' && this.query.memo.length != 0 ?
this.query.memo.join(';') : this.query.memo && this.query.memo.indexOf(',') != -1 ? this.query.memo.split(',').join(';') : this.query.memo,
// memo:this.query && this.query.memo && this.query.memo.length != 0 && this.query.memo.join(';'),
}; };
if(params.putStoreTime) delete params.putStoreTime; if(params.putStoreTime) delete params.putStoreTime;

@ -144,6 +144,7 @@
:expand-row-keys="expandedRowKeys" :expand-row-keys="expandedRowKeys"
@expand-change="handleExpandChange" @expand-change="handleExpandChange"
:default-expand-all="false" :default-expand-all="false"
:cell-class-name="tableClassName"
> >
<!-- && vxeTableData.find(item => item.item.name == '尺寸检测').wpItemDetailList && <!-- && vxeTableData.find(item => item.item.name == '尺寸检测').wpItemDetailList &&
vxeTableData.find(item => item.item.name == '尺寸检测').wpItemDetailList.length > 0 --> vxeTableData.find(item => item.item.name == '尺寸检测').wpItemDetailList.length > 0 -->
@ -442,7 +443,7 @@
align="center" align="center"
> >
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.testQty" :disabled=" scope.row.checkUserRealName != null && scope.row.checkUserRealName != '' "></el-input> <el-input v-model="scope.row.testQty" :disabled=" scope.row.checkUserRealName != null && scope.row.checkUserRealName != '' "></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -1113,12 +1114,15 @@ export default {
row.ruleSize = val && item && item.norms row.ruleSize = val && item && item.norms
row.dueDate = val && item && item.dueDate row.dueDate = val && item && item.dueDate
}, },
tableClassName({ row, column, rowIndex, columnIndex }){
if(column.property === 'testQty'){
console.log('row.testQty=============',row.testQty)
if(row.testQty > this.dialogData.poQty * 0.01){
return 'high_td';
}
}
},
cellClassName({ row, column, rowIndex, columnIndex }) { cellClassName({ row, column, rowIndex, columnIndex }) {
console.log('row=============',row)
console.log('column=============',column)
console.log('rowIndex=============',rowIndex)
console.log('columnIndex=============',columnIndex)
if(column.property == 'gaugeValue7'){ if(column.property == 'gaugeValue7'){
if(row.codeStatus == true){ if(row.codeStatus == true){
return 'high_td'; return 'high_td';

@ -638,7 +638,7 @@ export default {
if (this.modelTwo[i].procedureSet.ppsName.indexOf('检验') != -1) { if (this.modelTwo[i].procedureSet.ppsName.indexOf('检验') != -1) {
if (testWorkPlan == null) { if (testWorkPlan == null) {
testWorkPlan = this.modelTwo[i]; testWorkPlan = this.modelTwo[i];
if (this.modelThree && this.modelThree.checkList) { if (this.modelThree && this.modelThree.checkList && this.modelThree.checkList.length > 0) {
const item = this.modelThree.checkList.find( const item = this.modelThree.checkList.find(
(item) => (item) =>
item.testOrders.indexOf(testWorkPlan.orders + '-') != -1 item.testOrders.indexOf(testWorkPlan.orders + '-') != -1

Loading…
Cancel
Save