Browse Source

发料

master
ruanqi 2 years ago
parent
commit
120de6a9a5
  1. 3
      src/assets/scss/rq.scss
  2. 49
      src/views/modules/material/com_issureSo_add_or_update.vue
  3. 34
      src/views/modules/material/issureSo.vue

3
src/assets/scss/rq.scss

@ -77,3 +77,6 @@
font-weight: bold; font-weight: bold;
color: rgb(23, 179, 163); color: rgb(23, 179, 163);
} }
.el-table .error-row {
background: #eee77c;
}

49
src/views/modules/material/com_issureSo_add_or_update.vue

@ -77,6 +77,7 @@
:data="dataList" :data="dataList"
height="300" height="300"
border border
:row-class-name="tableRowClassName"
v-loading="false" v-loading="false"
style="width: 100%; "> style="width: 100%; ">
<el-table-column <el-table-column
@ -248,23 +249,23 @@
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80 columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 200002,
serialNumber: '200002Table4WdrNo',
tableId: "200002Table4",
tableName: "发料单已扫卷",
columnProp: "wdrNo",
headerAlign: "center",
align: "left",
columnLabel: "W/D/R",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
// },{
// userId: this.$store.state.user.name,
// functionId: 200002,
// serialNumber: '200002Table4WdrNo',
// tableId: "200002Table4",
// tableName: "",
// columnProp: "wdrNo",
// headerAlign: "center",
// align: "left",
// columnLabel: "W/D/R",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 80
},{ },{
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 200002, functionId: 200002,
@ -544,7 +545,7 @@
saveIssureCach(inData).then(({data}) => { saveIssureCach(inData).then(({data}) => {
// //
if (data && data.code == 0) { if (data && data.code == 0) {
this.$message.success( '操作成功')
this.$message.success( '操作成功'+data.str)
searchTransDetailAndSubCach(this.dataForm).then(({data})=>{ searchTransDetailAndSubCach(this.dataForm).then(({data})=>{
this.dataList = data.rows this.dataList = data.rows
}) })
@ -555,7 +556,17 @@
} }
}) })
}, },
tableRowClassName ({row, rowIndex}) {
var currentDate = new Date();
var futureDate = new Date();
futureDate.setDate(currentDate.getDate() + 90);
var date = new Date(row.expiredDate)
if (date.getTime() < futureDate.getTime()) {
console.log('快过期了')
return 'error-row'
}
return ''
},
}, },

34
src/views/modules/material/issureSo.vue

@ -482,23 +482,23 @@
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80 columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 200002,
serialNumber: '200002Table2WdrNo',
tableId: "200002Table2",
tableName: "生产发料明细",
columnProp: "wdrNo",
headerAlign: "center",
align: "left",
columnLabel: "W/D/R",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
// },{
// userId: this.$store.state.user.name,
// functionId: 200002,
// serialNumber: '200002Table2WdrNo',
// tableId: "200002Table2",
// tableName: "",
// columnProp: "wdrNo",
// headerAlign: "center",
// align: "left",
// columnLabel: "W/D/R",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100
},{ },{
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 200002, functionId: 200002,

Loading…
Cancel
Save