From e2cef6c358e57c2bc63e67a05c88c52585bb96db Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期五, 29 十二月 2023 11:22:29 +0800 Subject: [PATCH] 项目表 --- web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue | 63 +++++++++++++++++++++++++------ 1 files changed, 50 insertions(+), 13 deletions(-) diff --git a/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue b/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue index 0a1b4af..1f4403c 100644 --- a/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue +++ b/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue @@ -4,7 +4,7 @@ label-width="120px" class="circulationFormAuto"> <div> <el-form-item label-width="60px" label="缂栧彿:" style="width:100%;margin-bottom: -5px"> - <span>{{dataForm.circulatOrder.code}}</span> + <span>{{dataForm.circulatOrder.code || '缂栧彿鑷姩鐢熸垚'}}</span> </el-form-item> </div> <div style="border: 1px solid rgba(0,0,0,.2);width: 99%"> @@ -78,7 +78,6 @@ </el-table-column> <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="300" align="center"> <template v-slot="{ row }"> - <!-- <zt-table-button @click="files(row.id)">涓婁紶闄勪欢</zt-table-button>--> <table-uploader busi-type="circulat_order" model-name="row" :dataForm="row" v-model="row.files"/> </template> @@ -98,11 +97,11 @@ <div style="width: calc(100% - 120px);"> <div class="el-border-left"> <el-form-item label="鐗╁搧鏄惁闇�瑕佽繑杩�" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> - <zt-dict v-model="dataForm.circulatOrder.itemRequire" :radio="true" + <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.itemRequire" :radio="true" dict="is_or_not"></zt-dict> </el-form-item> <el-form-item label="鐗╁搧鐨勫叾浠栬姹傦細" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> - <el-input v-model="dataForm.circulatOrder.itemOther"></el-input> + <el-input :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.itemOther"></el-input> </el-form-item> </div> </div> @@ -121,7 +120,7 @@ </div> <div class="el-border-left-right acceptDate" style="width: 20%;height: 80px;"> <el-form-item style="width: 100%;padding-left:20px;margin:0;"> - {{dataForm.circulatOrder.acceptDate}} + {{ dataForm.circulatOrder.acceptDate | filterTime('YYYY骞碝M鏈圖D鏃�') }} </el-form-item> </div> <div style="width: 84px;text-align: center;font-weight: 600"> @@ -129,10 +128,10 @@ </div> <div class="el-border-left " style="width: 35%;height: 80px;"> <el-form-item label="鏄惁瀹屾垚鐥呮瘨鏌ユ潃" label-width="150px" style="padding-left:20px;margin-bottom:0"> - <zt-dict v-model="dataForm.circulatOrder.acceptSituation" :radio="true" dict="is_or_not"></zt-dict> + <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.acceptSituation" :radio="true" dict="is_or_not"></zt-dict> </el-form-item> <el-form-item label="鐥呮瘨搴撶増鏈細" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> - <el-input v-model="dataForm.circulatOrder.virusLibraryVersion"></el-input> + <el-input :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.virusLibraryVersion"></el-input> </el-form-item> </div> </div> @@ -176,7 +175,8 @@ </div> <div class="el-border-left-right" style="width: 20%;height: 40px;"> <el-form-item style="width: 100%;padding-left:20px;margin:0;"> - {{dataForm.circulatOrder.detectDate}} +<!-- {{dataForm.circulatOrder.detectDate}}--> + {{ dataForm.circulatOrder.detectDate | filterTime('YYYY骞碝M鏈圖D鏃�') }} </el-form-item> </div> <div style="width: 84px;text-align: center;font-weight: 600"> @@ -184,7 +184,7 @@ </div> <div class="el-border-left " style="width: 35%;height: 40px;"> <el-form-item label="鏄惁婊¤冻娴嬭瘯瑕佹眰" label-width="150px" style="padding-left:20px;margin-bottom:0"> - <zt-dict v-model="dataForm.circulatOrder.detectSituation" :radio="true" dict="is_or_not"></zt-dict> + <zt-dict :disabled="stepMarker!=='wplz_xzjc'" v-model="dataForm.circulatOrder.detectSituation" :radio="true" dict="is_or_not"></zt-dict> </el-form-item> </div> </div> @@ -228,7 +228,8 @@ </div> <div class="el-border-left-right " style="width: 20%;height: 40px;"> <el-form-item style="width: 100%;padding-left:20px;margin:0;"> - {{dataForm.circulatOrder.issueDate}} +<!-- {{dataForm.circulatOrder.issueDate}}--> + {{ dataForm.circulatOrder.issueDate | filterTime('YYYY骞碝M鏈圖D鏃�') }} </el-form-item> </div> <div style="width: 84px;text-align: center;font-weight: 600"> @@ -236,7 +237,7 @@ </div> <div class="el-border-left " style="width: 35%;height: 40px;"> <el-form-item label="鏄惁瀹屾垚鏍峰搧鍙戞斁" label-width="150px" style="padding-left:20px;margin-bottom:0"> - <zt-dict v-model="dataForm.circulatOrder.issueSituation" :radio="true" dict="is_or_not"></zt-dict> + <zt-dict :disabled="stepMarker!=='wplz_wpff'"v-model="dataForm.circulatOrder.issueSituation" :radio="true" dict="is_or_not"></zt-dict> </el-form-item> </div> </div> @@ -246,16 +247,22 @@ </div> <div class="el-border-left " style="width: 20%;height: 40px"> <el-form-item style="width: 100%;padding-left:20px;margin:0;"> - <el-input v-model="dataForm.circulatOrder.itemAcceptr"></el-input> + <el-input v-model="dataForm.circulatOrder.remark"></el-input> </el-form-item> </div> </div> </div> </el-form> + <template v-slot:footer> + <el-button v-if="dataForm.disabled" type="primary" @click="print()">鎵撳嵃</el-button> + </template> </zt-dialog> </template> <script> + import qs from "qs"; + import Cookies from "js-cookie"; + export default { data() { return { @@ -295,17 +302,27 @@ } } }, + computed:{ + getRoleName(){ + console.log(this.$store.state.user.roleName,'this.$store.state.user.roleName') + return this.$store.state.user.roleName || '' + }, + }, methods: { indexFormat(index) { return index += 1 }, init(id, row) { + console.log(id,row,'娴佽浆鍗曠殑') if (id) { this.dataForm.id = id } else { this.dataForm.id = row.id } - this.dataForm.projectId = row.projectId + if(row.projectId){ + this.dataForm.projectId =row.projectId + } + // this.dataForm.disabled this.getInfo() if (!this.dataForm.disabled) { @@ -337,8 +354,28 @@ ...this.dataForm, ...res.data } + if(this.dataForm.project === null){ + this.dataForm.project={} + } + if(this.dataForm.circulatOrder === null){ + this.dataForm.circulatOrder={} + } + if(this.dataForm.testAgencyInfo === null){ + this.dataForm.testAgencyInfo={} + } + if(this.dataForm.flowInfoDto === null){ + this.dataForm.flowInfoDto={} + } console.log(this.dataForm, "getInfo this.dataForm") }, + async print(){ + var params = qs.stringify({ + token: Cookies.get('token'), + id:this.dataForm.id + }) + let apiURL = `/itemCirculatOrder/ItemCirculatOrder/exportCirculatOrder/` + window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` + }, // 琛ㄥ崟鎻愪氦 async formSubmit(submitType) { console.log(this.dataForm, "this.dataForm11111") -- Gitblit v1.9.1