From 409b23c71621265ff93f410e2e0c16e402458512 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期二, 28 十一月 2023 16:15:15 +0800 Subject: [PATCH] modified: src/views/common/ztt-table.vue new file: src/views/quality/Packaging_ledger/index.vue --- src/views/quality/Packaging_ledger/index.vue | 287 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/common/ztt-table.vue | 3 2 files changed, 289 insertions(+), 1 deletions(-) diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue index 2f5a551..4776dca 100644 --- a/src/views/common/ztt-table.vue +++ b/src/views/common/ztt-table.vue @@ -937,7 +937,8 @@ } }, getDataList(selectedId) { - this.dataListLoading = true + // this.dataListLoading = true + this.dataListLoading = false var criteria = {} criteria.dateTimeFilters = this.dateTimeFilters criteria.multiSearchFilter = this.multiSearchFilter diff --git a/src/views/quality/Packaging_ledger/index.vue b/src/views/quality/Packaging_ledger/index.vue new file mode 100644 index 0000000..430bba5 --- /dev/null +++ b/src/views/quality/Packaging_ledger/index.vue @@ -0,0 +1,287 @@ +<template> + <div class="mod-config"> + <basic-container> + <el-row> + <el-col :span="11"> + <ttable + :table="table" + :isShowHide="true" + :prelang="prelang" + :options="options" + ref="processconfiguration" + > + <template #toolbar></template> + </ttable> + </el-col> + + + <el-col :span="13" style="padding-left: 10px"> + <el-card> + <div slot="header"> + <el-row> + <el-col :span="8"> + <span>鏍囧噯鍙傛暟</span> + </el-col> + <el-col :span="8" :offset="4"> + <!-- <el-button + style="float: right; padding: 3px 0" + type="text" + @click="beginItemLayOut" + > + 甯冨眬 + </el-button> --> + </el-col> + <el-col :span="2"> + <!-- <el-button + style="float: right; padding: 3px 0" + type="text" + :disabled="isSubmit" + v-thinclick="`dataFormTestStandardParam`" + v-if="editable" + >淇濆瓨 + </el-button> --> + </el-col> + <el-col :span="2"> + <!-- <el-button + style="float: right; padding: 3px 0" + type="text" + @click="relateOperationParam()" + v-if="editable" + >娣诲姞 + </el-button> --> + </el-col> + </el-row> + <el-row> + <!-- <span style="font-weight:500" v-if="testNo.length > 0" + >鎮ㄥ綋鍓嶉�夋嫨鐨勬娴嬫爣鍑嗙紪鍙锋槸锛�<span style="color:#066EFF">{{ + testNo + }}</span></span + > --> + </el-row> + </div> + <el-table + :data="testStandardParams" + id="testStandardParamTable" + ref="testStandardParam" + :default-sort="{ prop: 'index' }" + highlight-current-row + height="700" + style="width: 100%" + class="l-mes-table" + border + stripe + > + <el-table-column + prop="index" + label="搴忓彿" + align="center" + width="50" + /> + <!-- <el-table-column + label="鏄惁寮曠敤宸ヨ壓鍙傛暟" + prop="isReference" + align="center" + > + <template slot-scope="scope"> + <el-select + v-model="scope.row.isReference" + placeholder="璇烽�夋嫨" + style="width: 100%;" + > + <el-option + v-for="(item, index) in referenceOptions" + :key="index" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </template> + </el-table-column> + <el-table-column label="鏄惁鎶芥" prop="isCheck" align="center"> + <template slot-scope="scope"> + <el-select + v-model="scope.row.isCheck" + placeholder="璇烽�夋嫨" + style="width: 100%;" + > + <el-option + v-for="(item, index) in isCheckOptions" + :key="index" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </template> + </el-table-column> + <el-table-column + label="绾胯姱" + prop="wireCore" + align="center" + width="60" + > + <template slot-scope="scope"> + <el-input v-model="scope.row.wireCore"></el-input> + </template> + </el-table-column> --> + <el-table-column label="鍙傛暟缂栧彿" prop="code" align="center" /> + <el-table-column + label="鍙傛暟椤�" + prop="parameterItem" + align="center" + /> + <el-table-column + label="瑕佹眰鑼冨洿" + prop="referenceValue" + align="center" + > + </el-table-column> + <el-table-column + label="榛樿鍊�" + prop="defaultValue" + align="center" + > + </el-table-column> + <el-table-column + label="鍙傛暟椤圭被鍨�" + prop="paramType" + align="center" + > + </el-table-column> + <el-table-column + label="鍙傛暟鏍煎紡" + prop="parameterFormat" + align="center" + width="80" + > + <template slot-scope="scope"> + <el-input v-model="scope.row.parameterFormat"></el-input> + </template> + </el-table-column><el-table-column + label="娴嬭瘯鏂规硶" + prop="purpose" + align="center" + width="80" + > + </el-table-column> + <el-table-column + label="娴嬭瘯鐩殑" + prop="method" + align="center" + width="80" + > + </el-table-column> + <el-table-column label="鍗曚綅" prop="unit" align="center" /> + </el-table> + </el-card> + </el-col> + </el-row> + </basic-container> + </div> +</template> + +<script> +import ttable from '@/views/common/ztt-table.vue' +export default { + data(){ + return { + prelang: 'operation', + dataListLoading: false, + options: { + height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾 + stripe: true, // 鏄惁涓烘枒椹汗 table + highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈 + border: true, // 鏄惁鏈夌旱鍚戣竟妗� + lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇 + fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮� + multiSelect: true, // + seqNo: true, + isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳 + isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳 + isSearch: true, // 楂樼骇鏌ヨ鎸夐挳 + defaultOrderBy: { column: 'createTime', direction: 'desc' } + }, + table: { + total: 0, + currentPage: 1, + pageSize: 20, + data: [], + // 鏍囬 + column: [ + { + minWidth: '140', + prop: 'oo', + label: '璁㈠崟缂栧彿', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + },{ + minWidth: '140', + prop: 'materhhooial', + label: '璐ㄩ噺杩芥函鍙�', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'mateuurial', + label: '浜у搧鍚嶇О', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'materoiial', + label: '瑙勬牸鍨嬪彿', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'matperoial', + label: '鍗曚綅', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'materpial', + label: '鏁伴噺', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '130', + width: '150', + prop: 'dealTime', + label: '鍏ュ簱鏃堕棿', + sort: true, + isTrue: true, + isSearch: true, + searchInfoType: 'datetimerange', + }, + ], + toolbar: [ + { + text: 'xxx', + type: 'primary', + }, + ], + }, + } + }, + medthods: {}, +// computed: { +// ...mapGetters(['permissions']) +// }, + components: { + ttable + }, +} +</script> \ No newline at end of file -- Gitblit v1.9.3