|
|
@@ -39,9 +39,9 @@
|
|
|
<el-button type="text" icon="el-icon-download" size="small" v-if="permission.checkwarehouse_download_file && row.enclosure" @click="fileDownload(row)">附件下載</el-button>
|
|
|
</template>
|
|
|
|
|
|
- <template slot="checkPersonNameForm">
|
|
|
+ <!-- <template slot="checkPersonNameForm">
|
|
|
<select-dialog-user :name="form.checkPersonName" :ehr="form.checkPersonNo" :disabled="false" :callback="selectCallback"></select-dialog-user>
|
|
|
- </template>
|
|
|
+ </template>-->
|
|
|
|
|
|
<template slot="enclosureForm" slot-scope="{row}">
|
|
|
<avue-form ref="form" :option="attachOption" v-model="attachForm" :upload-after="uploadAfter" :upload-error="uploadError" :upload-delete="uploadDelete" :upload-preview="uploadPreview">
|
|
|
@@ -241,7 +241,7 @@
|
|
|
type: "select",
|
|
|
search: true,
|
|
|
searchSpan: 4,
|
|
|
- searchMultiple: true,
|
|
|
+ multiple: true,
|
|
|
dicUrl: "/api/blade-system/dict/dictionary?code=unit_type",
|
|
|
props:{
|
|
|
label: "dictValue",
|
|
|
@@ -252,7 +252,7 @@
|
|
|
return res.data;
|
|
|
},
|
|
|
change: ({value, column}) => {
|
|
|
- if (!value) return;
|
|
|
+ /*if (!value) return;
|
|
|
let $nameOut = this.findObject(this.option.column, 'checkPersonNameOut');
|
|
|
$nameOut.display = value != '1';
|
|
|
let $noOut = this.findObject(this.option.column, 'checkPersonNoOut');
|
|
|
@@ -263,7 +263,7 @@
|
|
|
$no.display = value == '1';
|
|
|
$no.disabled = value == '1';
|
|
|
if (!this.form.checkResult) return;
|
|
|
- /*let $remark = this.findObject(this.option.column, 'remark');
|
|
|
+ let $remark = this.findObject(this.option.column, 'remark');
|
|
|
if (value == '1' && this.form.checkResult == '1'){
|
|
|
$remark.rules[0].required = false;
|
|
|
}else{
|
|
|
@@ -285,6 +285,9 @@
|
|
|
label: "dictValue",
|
|
|
value: "dictKey",
|
|
|
},
|
|
|
+ multiple: true,
|
|
|
+ search: true,
|
|
|
+ searchSpan: 4,
|
|
|
dicFormatter: (res) => {
|
|
|
res.data.forEach(item => {item.disabled = item.isSealed == 1;})
|
|
|
return res.data;
|
|
|
@@ -301,7 +304,7 @@
|
|
|
type: "select",
|
|
|
search: true,
|
|
|
searchSpan: 4,
|
|
|
- searchMultiple: true,
|
|
|
+ multiple: true,
|
|
|
dicUrl: "/api/blade-system/dict/dictionary?code=check_content_warehouse",
|
|
|
props:{
|
|
|
label: "dictValue",
|
|
|
@@ -349,31 +352,9 @@
|
|
|
{
|
|
|
label: "查庫人員",
|
|
|
prop: "checkPersonName",
|
|
|
- formslot: true,
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入查庫人員姓名",
|
|
|
- trigger: "change"
|
|
|
- }]
|
|
|
- },
|
|
|
- {
|
|
|
- label: "查庫人員工號",
|
|
|
- prop: "checkPersonNo",
|
|
|
- disabled: true,
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入查庫人員工號",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- label: "查庫人員姓名",
|
|
|
- prop: "checkPersonNameOut",
|
|
|
- hide: true,
|
|
|
- viewDisplay: false,
|
|
|
- addDisplay: false,
|
|
|
- editDisplay: false,
|
|
|
+ // formslot: true,
|
|
|
+ type: "array",
|
|
|
+ span: 12,
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: "请输入查庫人員姓名",
|
|
|
@@ -382,14 +363,12 @@
|
|
|
},
|
|
|
{
|
|
|
label: "查庫人員工號或身份證後四位",
|
|
|
- prop: "checkPersonNoOut",
|
|
|
- hide: true,
|
|
|
- viewDisplay: false,
|
|
|
- addDisplay: false,
|
|
|
- editDisplay: false,
|
|
|
+ prop: "checkPersonNo",
|
|
|
+ type: "array",
|
|
|
+ span: 12,
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
- message: "查庫人員工號或身份證後四位",
|
|
|
+ message: "请输入查庫人員工號或身份證後四位",
|
|
|
trigger: "blur"
|
|
|
}]
|
|
|
},
|
|
|
@@ -501,12 +480,10 @@
|
|
|
this.form.checkPersonName = value.name;
|
|
|
},
|
|
|
rowSave(row, done, loading) {
|
|
|
- if (row.checkUnit == 1 && !!row.checkPersonNameOut && !!row.checkPersonNoOut){
|
|
|
- row.checkPersonName = row.checkPersonNameOut;
|
|
|
- row.checkPersonNo = row.checkPersonNoOut;
|
|
|
- }
|
|
|
- /* row.checkContent = row.checkContent.join();
|
|
|
- row.checkPurpose = row.checkPurpose.join();*/
|
|
|
+
|
|
|
+ row.checkUnit = row.checkUnit.join();
|
|
|
+ row.checkPurpose = row.checkPurpose.join();
|
|
|
+ row.checkContent = row.checkContent.join();
|
|
|
add(row).then(() => {
|
|
|
this.onLoad(this.page);
|
|
|
this.$message({
|
|
|
@@ -520,12 +497,9 @@
|
|
|
});
|
|
|
},
|
|
|
rowUpdate(row, index, done, loading) {
|
|
|
- if (row.checkUnit == 1 && !!row.checkPersonNameOut && !!row.checkPersonNoOut){
|
|
|
- row.checkPersonName = row.checkPersonNameOut;
|
|
|
- row.checkPersonNo = row.checkPersonNoOut;
|
|
|
- }
|
|
|
- /*row.checkContent = row.checkContent.join();
|
|
|
- row.checkPurpose = row.checkPurpose.join();*/
|
|
|
+ row.checkUnit = row.checkUnit.join();
|
|
|
+ row.checkPurpose = row.checkPurpose.join();
|
|
|
+ row.checkContent = row.checkContent.join();
|
|
|
update(row).then(() => {
|
|
|
this.onLoad(this.page);
|
|
|
this.$message({
|
|
|
@@ -608,12 +582,6 @@
|
|
|
this.onLoad(this.page);
|
|
|
},
|
|
|
searchChange(params, done) {
|
|
|
- if (params.checkUnit){
|
|
|
- params.checkUnit = params.checkUnit.join();
|
|
|
- }
|
|
|
- if (params.checkContent){
|
|
|
- params.checkContent = params.checkContent.join();
|
|
|
- }
|
|
|
if (params.orgNos){
|
|
|
params.orgNostr = params.orgNos.join();
|
|
|
params.orgNos = '';
|
|
|
@@ -653,6 +621,7 @@
|
|
|
data.records.forEach(item => {
|
|
|
item.checkPurpose = item.checkPurpose.split(',');
|
|
|
item.checkContent = item.checkContent.split(',');
|
|
|
+ item.checkUnit = item.checkUnit.split(',');
|
|
|
})
|
|
|
|
|
|
this.data = data.records;
|