diff --git a/src/api/business/storageLocation/storageLocation.js b/src/api/business/storageLocation/storageLocation.js index f2076c2..8651478 100644 --- a/src/api/business/storageLocation/storageLocation.js +++ b/src/api/business/storageLocation/storageLocation.js @@ -21,4 +21,20 @@ export function storageLocation_edit(data) { method: 'post', data: data }) +} + +export function storageLocation_info(query) { + return request({ + url: '/system/business/storageLocation/info', + method: 'get', + params: query + }) +} + +export function jcgj_list(query) { + return request({ + url: '/system/business/storageLocation/jcgj/list', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/components/Template/StepComponents/qxwdx/qxjz.vue b/src/components/Template/StepComponents/qxwdx/qxjz.vue index 85b3735..c80c673 100644 --- a/src/components/Template/StepComponents/qxwdx/qxjz.vue +++ b/src/components/Template/StepComponents/qxwdx/qxjz.vue @@ -66,7 +66,7 @@ export default { compareTo: "yjhj", }, text6: { - label: this.sn==='qxqy'?"条件下暂存至":"条件下静置,即稳定性", + label: this.sn==='qxqy'?"条件下暂存,作为":"条件下静置,即稳定性", type: "text", }, } @@ -93,14 +93,6 @@ export default { fillType: "actFill", otherCode: "ccwzOther", } - config[0].config.text8 = { - type: "text", - label: "作为", - } - config[0].config.yp = { - type: "input", - fillType: "actFill", - } config[0].config.text9 = { type: "text", label: "样品。", diff --git a/src/components/Template/StepComponents/ry/jd.vue b/src/components/Template/StepComponents/ry/jd.vue index 67c1ad0..2486dcb 100644 --- a/src/components/Template/StepComponents/ry/jd.vue +++ b/src/components/Template/StepComponents/ry/jd.vue @@ -51,7 +51,8 @@ export default { }, yjwd: { type: "select", - options: this.getDictOptions("business_wddw"), + options: this.getDictOptions("business_cctj"), + multiple: true, fillType: "preFill", otherCode: "yjwdOther", }, @@ -67,7 +68,8 @@ export default { }, sjwd: { type: "select", - options: this.getDictOptions("business_wddw"), + options: this.getDictOptions("business_cctj"), + multiple: true, fillType: "actFill", otherCode: "sjwdOther", compareTo: "yjwd", @@ -162,7 +164,8 @@ export default { }, yjwd: { type: "select", - options: this.getDictOptions("business_wddw"), + options: this.getDictOptions("business_cctj"), + multiple: true, fillType: "preFill", otherCode: "yjwdOther", }, @@ -178,7 +181,8 @@ export default { }, sjwd: { type: "select", - options: this.getDictOptions("business_wddw"), + options: this.getDictOptions("business_cctj"), + multiple: true, fillType: "actFill", otherCode: "sjwdOther", compareTo: "yjwd", diff --git a/src/views/business/comps/template/comps/dl/DL023.vue b/src/views/business/comps/template/comps/dl/DL023.vue index ab14c55..267a79f 100644 --- a/src/views/business/comps/template/comps/dl/DL023.vue +++ b/src/views/business/comps/template/comps/dl/DL023.vue @@ -189,7 +189,7 @@ export default { subKey: 'zskssj', buttonName: 'template.dl.dl023.ksButton', disabled: true, - subDisabled: false + subDisabled: this.fillType !== 'actFill' }, zsjssj: { label: 'template.dl.dl023.zsjssj', @@ -200,7 +200,7 @@ export default { subKey: 'zsjssj', buttonName: 'template.dl.dl023.jsButton', disabled: true, - subDisabled: false + subDisabled: this.fillType !== 'actFill' }, } } diff --git a/src/views/business/comps/template/comps/yp/YP002.vue b/src/views/business/comps/template/comps/yp/YP002.vue index cf90f0b..7a6a875 100644 --- a/src/views/business/comps/template/comps/yp/YP002.vue +++ b/src/views/business/comps/template/comps/yp/YP002.vue @@ -143,7 +143,7 @@ export default { subKey:"jssjButton", buttonName:"template.yp.yp002.hqsj", disabled:true, - subDisabled:false + subDisabled:this.fillType !== 'actFill' }, } }, diff --git a/src/views/business/comps/template/comps/yp/YP005.vue b/src/views/business/comps/template/comps/yp/YP005.vue index 7a2bc42..996d8c6 100644 --- a/src/views/business/comps/template/comps/yp/YP005.vue +++ b/src/views/business/comps/template/comps/yp/YP005.vue @@ -178,7 +178,7 @@ export default { bodyThirdFillType:"actFill", width: 280, bodyDisabled:true, - bodySubDisabled:false, + bodySubDisabled:this.fillType !== 'actFill', }] }, }, @@ -193,13 +193,37 @@ export default { methods: { // 点击按钮 handleClickButton(key,rowIndex,colIndex,e,data){ + let content = this.getFilledFormData(); + let tableList = content.stepTableFormData + let qxsj = tableList[rowIndex].qxsj + let timeArr = qxsj?qxsj.split('~'):['',''] if(key === "exportBtn"){ this.currentRowIndex = rowIndex; this.$refs.ImportExcelDialog.show() } if(key === "startBtn"){ + let startTime = moment().format("YYYY/MM/DD HH:mm") + timeArr[0] = startTime this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ - qxsj: moment().format("YYYY/MM/DD HH:mm"), + qxsj: timeArr.join('~'), + }) + + // this.$nextTick(() => { + // //通知后端保存数据 + // const params = { + // type: "fieldChanged", + // newRecord: null, + // resourceList: null, + // } + // EventBus.$emit('onModifyRecord', params,) + // }) + } + if(key === "endBtn"){ + debugger + let endTime = moment().format("YYYY/MM/DD HH:mm") + timeArr[1] = endTime + this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ + qxsj: timeArr.join('~'), }) // this.$nextTick(() => { diff --git a/src/views/business/resource/yq/list.vue b/src/views/business/resource/yq/list.vue index d3dc6d3..9ec6df1 100644 --- a/src/views/business/resource/yq/list.vue +++ b/src/views/business/resource/yq/list.vue @@ -149,7 +149,8 @@ - + @@ -213,7 +214,8 @@ export default { }, // 表单参数 form: { - 'qmyy': this.$t('page.form.add') + 'qmyy': this.$t('page.form.add'), + qmrmm: null, }, // 表单校验 rules: { @@ -290,6 +292,7 @@ export default { wc: null, ccwz: null, fzdd: null, + qmrmm: null, qmyy: this.$t('page.business.resource.yq.xzyq'), } this.resetForm('form') diff --git a/src/views/business/storageLocation/comps/detail.vue b/src/views/business/storageLocation/comps/detail.vue new file mode 100644 index 0000000..ca433a4 --- /dev/null +++ b/src/views/business/storageLocation/comps/detail.vue @@ -0,0 +1,126 @@ + + + diff --git a/src/views/business/storageLocation/list.vue b/src/views/business/storageLocation/list.vue index 672f62f..330fc80 100644 --- a/src/views/business/storageLocation/list.vue +++ b/src/views/business/storageLocation/list.vue @@ -114,7 +114,8 @@ - + @@ -126,19 +127,21 @@ +