From 4b04e45c82740e8aad72b8ac664884b3d17b090e Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 20 八月 2025 19:56:51 +0800
Subject: [PATCH] 调整界面
---
src/views/flowmgr/taskassign.vue | 47 ++++++++++++++++++++++++++++++-----------------
1 files changed, 30 insertions(+), 17 deletions(-)
diff --git a/src/views/flowmgr/taskassign.vue b/src/views/flowmgr/taskassign.vue
index 604241c..ad4abec 100644
--- a/src/views/flowmgr/taskassign.vue
+++ b/src/views/flowmgr/taskassign.vue
@@ -13,23 +13,38 @@
</template>
<script>
+import {
+ getQueryString,
+} from '@/utils/util';
+
export default {
watch: {
'attachForm.drawingNo': function (val) {
- if(val && this.attachForm.processNo) {
- this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
+ if(val && this.attachForm.processNo && this.attachForm.processEdition) {
+ this.attachForm.title = `${val}-${this.attachForm.processNo}-${this.attachForm.processEdition}-鏁版帶绋嬪簭缂栧埗`;
}
},
'attachForm.processNo': function (val) {
- if(val && this.attachForm.drawingNo) {
+ if(val && this.attachForm.drawingNo && this.attachForm.processEdition) {
//this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
- this.attachForm.title = `${this.attachForm.drawingNo}-${val}-鏁版帶绋嬪簭缂栧埗`;
+ this.attachForm.title = `${this.attachForm.drawingNo}-${val}-${this.attachForm.processEdition}-鏁版帶绋嬪簭缂栧埗`;
+ }
+ },
+ 'attachForm.processEdition': function (val) {
+ if(val && this.attachForm.drawingNo && this.attachForm.processNo ) {
+ //this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
+ this.attachForm.title = `${this.attachForm.drawingNo}-${this.attachForm.processNo} -${val}-鏁版帶绋嬪簭缂栧埗`;
}
},
},
data() {
+
+ var isTempFlow = getQueryString("isTempFlow");
+ isTempFlow = isTempFlow === 'Y'?'Y':'N';
+ console.log('isTempFlow='+isTempFlow);
var that = this;
return {
+ isTempFlow:isTempFlow,//鏄惁涓存椂娴佺▼
form: {},
machineCodeList: [],
attachOption: {
@@ -47,7 +62,7 @@
rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
},
{
- label: '鍥惧彿',
+ label: '闆剁粍浠跺彿',
prop: 'drawingNo',
type: 'input',
span: 12,
@@ -69,13 +84,6 @@
span: 12,
dataType: 'string',
rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
- // rules: [
- // {
- // required: true,
- // message: '璇烽�夋嫨娴佺▼绫诲瀷',
- // trigger: 'blur',
- // },
- // ],
},
{
label: '宸ュ簭鍙�',
@@ -107,6 +115,7 @@
{
label: '宸ヨ壓鐗堟',
prop: 'craftEdition',
+ placeholder:'濡�"A"',
type: 'input',
span: 12,
dataType: 'string',
@@ -117,8 +126,8 @@
label: '鍔犲伐鏈哄簥',
prop: 'machineCode',
type: 'select',
- filterable: true,
- dicUrl: `/blade-mdm/machine/page`,
+ filterable: true,
+ dicUrl: `/blade-mdm/machine/page?size=10000`,
dicFormatter: function (res) {
that.machineCodeList = res.data.records;
return res.data.records;
@@ -133,9 +142,13 @@
{
label: '璁″垝閿佸畾鏃堕棿锛堝ぉ锛�',
prop: 'planLockDays',
- type: 'input',
+ type: 'number',
+ min:0,
+ max:30,
span: 12,
+ controls:true,
dataType: 'number',
+ controlsPosition:'right',
rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
},
{
@@ -155,10 +168,10 @@
span: 12,
dataType: 'string',
// rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
- },
+ }
],
},
- attachForm: {},
+ attachForm: {planLockDays:7},//榛樿7澶�
};
},
methods: {
--
Gitblit v1.9.3