1.图纸派工单增加检查功能,检查领取、套料图如果已经导入更新接收日期及反馈状态

master
董哲奇 11 months ago
parent 06a02a675f
commit afd09b7140

@ -8,7 +8,7 @@ export function saveTzjhPgdXd(data) {return request({url: '/pgdTzjh/saveTzjhPgdX
export function saveTzjhPgdXdBack(data) {return request({url: '/pgdTzjh/saveTzjhPgdXdBack', method: 'post', data})} export function saveTzjhPgdXdBack(data) {return request({url: '/pgdTzjh/saveTzjhPgdXdBack', method: 'post', data})}
export function saveTzjhPgdFk(data) {return request({url: '/pgdTzjh/saveTzjhPgdFk', method: 'post', data})} export function saveTzjhPgdFk(data) {return request({url: '/pgdTzjh/saveTzjhPgdFk', method: 'post', data})}
export function getPgdBase(data) {return request({url: '/pgdTzjh/getPgdBase', method: 'post', data})} export function getPgdBase(data) {return request({url: '/pgdTzjh/getPgdBase', method: 'post', data})}
export function checkTzReq(data) {return request({url: '/pgdTzjh/checkTz', method: 'post', data})}
export function getDhPgd(data) {return request({url: '/pgdDh/getDhPgd', method: 'post', data})} export function getDhPgd(data) {return request({url: '/pgdDh/getDhPgd', method: 'post', data})}

@ -284,7 +284,7 @@ export default {
window.addEventListener('resize', this.getHeight) window.addEventListener('resize', this.getHeight)
this.getHeight() this.getHeight()
this.initBase() this.initBase()
this.queryParam.beginTime=XEUtils.toDateString(new Date(),'yyyy/MM/dd') this.queryParam.beginTime = XEUtils.toDateString(XEUtils.getWhatMonth(new Date(), 1, 'first'),'yyyy/MM/dd')
}, },
watch: { watch: {
'queryParam.beginTime'(newValue, Value){ 'queryParam.beginTime'(newValue, Value){

@ -284,7 +284,7 @@ export default {
window.addEventListener('resize', this.getHeight) window.addEventListener('resize', this.getHeight)
this.getHeight() this.getHeight()
this.initBase() this.initBase()
this.queryParam.beginTime=XEUtils.toDateString(new Date(),'yyyy/MM/dd') this.queryParam.beginTime = XEUtils.toDateString(XEUtils.getWhatMonth(new Date(), 1, 'first'),'yyyy/MM/dd')
}, },
watch: { watch: {
'queryParam.beginTime'(newValue, Value){ 'queryParam.beginTime'(newValue, Value){

@ -3024,7 +3024,7 @@ export default {
getCzxx({}).then(res => { getCzxx({}).then(res => {
this.dictData = res.data this.dictData = res.data
}) })
this.queryParam.beginTime = XEUtils.toDateString(XEUtils.getWhatMonth(new Date(), 0, 1),'yyyy/MM/dd') this.queryParam.beginTime = XEUtils.toDateString(XEUtils.getWhatMonth(new Date(), 1, 'first'),'yyyy/MM/dd')
}, },
//1 //1
initList() { initList() {

@ -1031,9 +1031,10 @@ export default {
}) })
var date = new Date(); var date = new Date();
var Y = date.getFullYear() + "/"; var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/"; var M = (date.getMonth() + 2 < 10 ? "0" + (date.getMonth() + 2) : date.getMonth() + 2)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate(); var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.yf = Y + M + D; // this.queryParam.yf = Y + M + D;
this.queryParam.yf= XEUtils.toDateString(XEUtils.getWhatMonth(new Date(), 0, 'first'),'yyyy/MM/dd')
}, },
//1 //1
initList() { initList() {

@ -1080,7 +1080,7 @@ export default {
}) })
var date = new Date(); var date = new Date();
var Y = date.getFullYear() + "/"; var Y = date.getFullYear() + "/";
var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1)+ "/"; var M = (date.getMonth() + 2 < 10 ? "0" + (date.getMonth() + 2) : date.getMonth() + 2)+ "/";
var D = date.getDate()<10? "0" +date.getDate():date.getDate(); var D = date.getDate()<10? "0" +date.getDate():date.getDate();
this.queryParam.yf = Y + M + D; this.queryParam.yf = Y + M + D;

@ -60,7 +60,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14" > <el-col :span="12" >
<el-form-item label="状态:"> <el-form-item label="状态:">
<el-select v-model="queryParam.zt" placeholder="状态" clearable> <el-select v-model="queryParam.zt" placeholder="状态" clearable>
<el-option <el-option
@ -79,10 +79,11 @@
<el-button type="info" @click="plClick"></el-button> <el-button type="info" @click="plClick"></el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" > <el-col :span="6" >
<el-form-item style="float: right" > <el-form-item style="float: right" >
<el-button type="success" @click="saveclick"></el-button>
<el-button type="success" @click="xdClick"></el-button> <el-button type="success" @click="xdClick"></el-button>
<el-button type="success" @click="checkTz"></el-button>
<el-button type="success" @click="saveclick"></el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -130,7 +131,7 @@ import {
saveTzjhPgdXd, saveTzjhPgdXd,
saveTzjhPgdXdBack, saveTzjhPgdXdBack,
getPgdBase getPgdBase, checkTzReq
} from '@/api/jhzxgl/pgd' } from '@/api/jhzxgl/pgd'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils' import XEUtils from 'xe-utils'
@ -293,6 +294,18 @@ export default {
}, },
methods: { methods: {
checkTz(){
const data=this.$refs.xGrid.getCheckboxRecords();
if (data.length===0){
this.$message.warning('请先选择带检查的数据数据')
return
}
const checkData=data.filter(item=>item.zt==='01')
checkTzReq(checkData).then(res=>{
this.$message.success('检查完成')
this.initList()
})
},
cellClickEvent({row}) { cellClickEvent({row}) {
this.queryParam.dcch = row.cbbm this.queryParam.dcch = row.cbbm
this.$refs.xDown4.hidePanel() this.$refs.xDown4.hidePanel()
@ -311,9 +324,6 @@ export default {
}, },
activeRowMethod({ row, rowIndex }){ activeRowMethod({ row, rowIndex }){
if(row.zt==="01"){ if(row.zt==="01"){
return true return true

Loading…
Cancel
Save