From 0994009a6d6184839359505d99fdf7be68ee1b19 Mon Sep 17 00:00:00 2001 From: hdy <1105738590@qq.com> Date: 星期五, 14 三月 2025 12:51:12 +0800 Subject: [PATCH] 工单界面新增按钮 --- billion-ui/src/views/main/bs/materialInfo/index.vue | 154 ++++++++++++++++++++++++++++++-------------------- 1 files changed, 92 insertions(+), 62 deletions(-) diff --git a/billion-ui/src/views/main/bs/materialInfo/index.vue b/billion-ui/src/views/main/bs/materialInfo/index.vue index a013862..5317887 100644 --- a/billion-ui/src/views/main/bs/materialInfo/index.vue +++ b/billion-ui/src/views/main/bs/materialInfo/index.vue @@ -167,68 +167,98 @@ /> <!-- 娣诲姞鎴栦慨鏀圭墿鏂欎俊鎭璇濇 --> - <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> - <el-form ref="form" :model="form" :rules="rules" label-width="80px"> - <el-form-item label="鐗╂枡缂栧彿" prop="materialCode"> - <el-input v-model="form.materialCode" placeholder="璇疯緭鍏ョ墿鏂欑紪鍙�" /> - </el-form-item> - <el-form-item label="鐗╂枡鍚嶇О" prop="materialName"> - <el-input v-model="form.materialName" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�" /> - </el-form-item> - <el-form-item label="瑙嗗浘" prop="materialView"> - <el-input v-model="form.materialView" placeholder="璇疯緭鍏ヨ鍥�" /> - </el-form-item> - <el-form-item label="绉嶇被" prop="typeZ"> - <el-select style="width: 100%" v-model="form.typeZ" placeholder="璇烽�夋嫨绉嶇被"> - <el-option - v-for="dict in dict.type.type_z" - :key="dict.value" - :label="dict.label" - :value="dict.value" - ></el-option> - </el-select> - </el-form-item> - <el-form-item label="绫诲瀷" prop="typeL"> - <el-select style="width: 100%" v-model="form.typeL" placeholder="璇烽�夋嫨绫诲瀷"> - <el-option - v-for="dict in dict.type.type_l" - :key="dict.value" - :label="dict.label" - :value="dict.value" - ></el-option> - </el-select> - </el-form-item> - <el-form-item label="鍗曚綅" prop="unit"> - <el-select style="width: 100%" v-model="form.unit" placeholder="璇烽�夋嫨鍗曚綅"> - <el-option - v-for="dict in dict.type.unit" - :key="dict.value" - :label="dict.label" - :value="dict.value" - ></el-option> - </el-select> - </el-form-item> - <el-form-item label="鐗堟湰" prop="version"> - <el-input v-model="form.version" placeholder="璇疯緭鍏ョ増鏈�" /> - </el-form-item> - <el-form-item label="鐘舵��" prop="status"> - <el-radio-group v-model="form.status"> - <el-radio - v-for="dict in dict.type.sys_normal_disable" - :key="dict.value" - :label="dict.value" - >{{dict.label}}</el-radio> - </el-radio-group> - </el-form-item> - <el-form-item label="鍘傚晢" prop="supplier"> - <el-input v-model="form.supplier" placeholder="璇疯緭鍏ュ巶鍟�" /> - </el-form-item> - <el-form-item label="澶囨敞" prop="remark"> - <el-input v-model="form.remark" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" /> - </el-form-item> - <el-form-item label="鏁版嵁鏉ユ簮" prop="dataSource"> - <el-input v-model="form.dataSource" placeholder="璇疯緭鍏ユ暟鎹潵婧�" /> - </el-form-item> + <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> + <el-form :inline="true" ref="form" :model="form" :rules="rules" label-width="80px"> + <el-row :gutter="10"> + <el-col span="8"> + <el-form-item label="鐗╂枡缂栧彿" prop="materialCode"> + <el-input v-model="form.materialCode" placeholder="璇疯緭鍏ョ墿鏂欑紪鍙�" /> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="鐗╂枡鍚嶇О" prop="materialName"> + <el-input v-model="form.materialName" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�" /> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="瑙嗗浘" prop="materialView"> + <el-input v-model="form.materialView" placeholder="璇疯緭鍏ヨ鍥�" /> + </el-form-item> + </el-col> + </el-row> + <el-row :gutter="10"> + <el-col span="8"> + <el-form-item label="绉嶇被" prop="typeZ"> + <el-select style="width: 93%" v-model="form.typeZ" placeholder="璇烽�夋嫨绉嶇被"> + <el-option + v-for="dict in dict.type.type_z" + :key="dict.value" + :label="dict.label" + :value="dict.value" + ></el-option> + </el-select> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="绫诲瀷" prop="typeL"> + <el-select style="width: 93%" v-model="form.typeL" placeholder="璇烽�夋嫨绫诲瀷"> + <el-option + v-for="dict in dict.type.type_l" + :key="dict.value" + :label="dict.label" + :value="dict.value" + ></el-option> + </el-select> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="鍗曚綅" prop="unit"> + <el-select style="width: 93%" v-model="form.unit" placeholder="璇烽�夋嫨鍗曚綅"> + <el-option + v-for="dict in dict.type.unit" + :key="dict.value" + :label="dict.label" + :value="dict.value" + ></el-option> + </el-select> + </el-form-item> + </el-col> + </el-row> + <el-row :gutter="10"> + <el-col span="8"> + <el-form-item label="鐗堟湰" prop="version"> + <el-input v-model="form.version" placeholder="璇疯緭鍏ョ増鏈�" /> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="鏁版嵁鏉ユ簮" prop="dataSource"> + <el-input v-model="form.dataSource" placeholder="璇疯緭鍏ユ暟鎹潵婧�" /> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="鍘傚晢" prop="supplier"> + <el-input v-model="form.supplier" placeholder="璇疯緭鍏ュ巶鍟�" /> + </el-form-item> + </el-col> + </el-row> + <el-row :gutter="10"> + <el-col span="8"> + <el-form-item label="澶囨敞" prop="remark"> + <el-input v-model="form.remark" placeholder="璇疯緭鍏ュ唴瀹�" /> + </el-form-item> + </el-col> + <el-col span="8"> + <el-form-item label="鐘舵��" prop="status"> + <el-radio-group v-model="form.status"> + <el-radio + v-for="dict in dict.type.sys_normal_disable" + :key="dict.value" + :label="dict.value" + >{{dict.label}}</el-radio> + </el-radio-group> + </el-form-item> + </el-col> + </el-row> </el-form> <div slot="footer" class="dialog-footer"> <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> -- Gitblit v1.9.3