new file: src/api/quality/Packaging_ledger.js
modified: src/views/quality/Packaging_ledger/index.vue
new file: src/views/quality/Packaging_ledger/pack-from.vue
new file: src/views/quality/Packaging_ledger/pack-fromadd.vue
modified: vue.config.js
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios' |
| | | |
| | | export function pagedata(query) { |
| | | return request({ |
| | | url: '/mes/qualityPackageBox/page', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function dataadd(query) { |
| | | return request({ |
| | | url: '/mes/qualityPackageBoxDetail/selProduct', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function list(query) { |
| | | return request({ |
| | | url: '/mes//qualityPackageBoxDetail/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function customerpage(query) { |
| | | return request({ |
| | | url: '/mes/customer/page', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function pagedataadd(obj) { |
| | | return request({ |
| | | url: '/mes/qualityPackageBox/add', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function saveList(obj) { |
| | | return request({ |
| | | url: '/mes/qualityPackageBoxDetail/saveList', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | export function dropById(query) { |
| | | return request({ |
| | | url: '/mes/qualityPackageBox/dropById', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function deledata(query) { |
| | | return request({ |
| | | url: '/mes/qualityPackageBoxDetail/dropById', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | <el-row> |
| | | <el-col :span="11"> |
| | | <ttable |
| | | :table="table" |
| | | :isShowHide="true" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | ref="processconfiguration" |
| | | > |
| | | :table="table" |
| | | :isShowHide="true" |
| | | :prelang="prelang" |
| | | :ajaxFun="ajaxFun" |
| | | :options="options" |
| | | @handleSelectionChange="handleCurrentChange" |
| | | ref="processconfiguration" |
| | | > |
| | | <template #toolbar></template> |
| | | </ttable> |
| | | </el-col> |
| | | |
| | | |
| | | <el-col :span="13" style="padding-left: 10px"> |
| | | <el-card> |
| | | <div slot="header"> |
| | |
| | | </el-button> --> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <!-- <el-button |
| | | <el-button |
| | | style="float: right; padding: 3px 0" |
| | | type="text" |
| | | :disabled="isSubmit" |
| | | v-thinclick="`dataFormTestStandardParam`" |
| | | v-if="editable" |
| | | @click="addpreserve" |
| | | >ä¿å |
| | | </el-button> --> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <!-- <el-button |
| | | <el-button |
| | | style="float: right; padding: 3px 0" |
| | | type="text" |
| | | @click="relateOperationParam()" |
| | | v-if="editable" |
| | | >æ·»å |
| | | </el-button> --> |
| | | </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 |
| | |
| | | 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" |
| | | label="产å" |
| | | prop="product" |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | label="è¦æ±èå´" |
| | | prop="referenceValue" |
| | | label="产åç¼å·" |
| | | prop="productNo" |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="é»è®¤å¼" |
| | | prop="defaultValue" |
| | | label="è§æ ¼åå·" |
| | | prop="specs" |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="åæ°é¡¹ç±»å" |
| | | prop="paramType" |
| | | label="åä½" |
| | | prop="unit" |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="åæ°æ ¼å¼" |
| | | 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-column |
| | | fixed="right" |
| | | label="æä½" |
| | | align="center" |
| | | width="80"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="deleteadd(scope.row)" size="small">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- æ°å¢ --> |
| | | <packfrom |
| | | :currshowlist.sync="addOrUpdateVisible" |
| | | > |
| | | </packfrom> |
| | | <packfromadd |
| | | :currshowlist.sync="increase" |
| | | :packageBoxIddata ="packageBoxId" |
| | | @handleSelectionChange = "preserve" |
| | | > |
| | | </packfromadd> |
| | | </basic-container> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { pagedata,dropById,list,saveList,deledata} from '@/api/quality/Packaging_ledger' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import packfrom from './pack-from.vue' |
| | | import packfromadd from './pack-fromadd.vue' |
| | | export default { |
| | | data(){ |
| | | return { |
| | | goid:'', |
| | | testStandardParams: [], |
| | | packageBoxId:{}, |
| | | prelang: 'operation', |
| | | dataListLoading: false, |
| | | ajaxFun: pagedata, |
| | | increase:false, |
| | | addOrUpdateVisible:false, |
| | | options: { |
| | | height: 300, // é»è®¤é«åº¦-为äºè¡¨å¤´åºå® |
| | | stripe: true, // æ¯å¦ä¸ºæé©¬çº¹ table |
| | |
| | | data: [], |
| | | // æ é¢ |
| | | column: [ |
| | | { |
| | | minWidth: 'code', |
| | | prop: 'state', |
| | | label: 'ç¶æ', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'oo', |
| | | label: '订åç¼å·', |
| | | prop: 'packageNo', |
| | | label: 'å
è£
ç¼å·', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | },{ |
| | | minWidth: '140', |
| | | prop: 'materhhooial', |
| | | label: 'è´¨é追溯å·', |
| | | prop: 'createUser', |
| | | label: 'å建人', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | },{ |
| | | minWidth: '140', |
| | | prop: 'contractNo', |
| | | 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: 'æ°é', |
| | | prop: 'updateUser', |
| | | label: 'æ´æ°äºº', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | { |
| | | minWidth: '130', |
| | | width: '150', |
| | | prop: 'dealTime', |
| | | label: 'å
¥åºæ¶é´', |
| | | prop: 'updateTime', |
| | | label: 'æ´æ°æ¥æ', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'datetimerange', |
| | | }, |
| | | { |
| | | minWidth: '130', |
| | | width: '150', |
| | | prop: 'createTime', |
| | | label: 'åå»ºæ¥æ', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | |
| | | }, |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: 'xxx', |
| | | type: 'primary', |
| | | }, |
| | | { |
| | | text: 'æ°å¢', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | }, |
| | | ], |
| | | operator: [ |
| | | { |
| | | text: 'å é¤', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | },{ |
| | | text: 'xx', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | // fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: 'æä½', |
| | | width: 120, |
| | | minWidth: 120 |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | medthods: {}, |
| | | // computed: { |
| | | // ...mapGetters(['permissions']) |
| | | // }, |
| | | components: { |
| | | ttable |
| | | ttable, |
| | | packfrom, |
| | | packfromadd |
| | | }, |
| | | watch: { |
| | | // renovate() { |
| | | // if (this.innerVisible = false) { |
| | | // this.$nextTick(() => { |
| | | // this.getData() |
| | | // }) |
| | | // } |
| | | // } |
| | | }, |
| | | methods: { |
| | | // è·åæ°æ®å表 |
| | | getData() { |
| | | this.$refs.processconfiguration.refreshData() |
| | | }, |
| | | //add |
| | | addOrUpdateHandle(){ |
| | | this.addOrUpdateVisible = true |
| | | }, |
| | | //å é¤ |
| | | deleteHandle(row){ |
| | | dropById({id:row.id}).then((res) =>{ |
| | | this.getData() |
| | | this.$message.error('å 餿å') |
| | | }) |
| | | }, |
| | | handleCurrentChange(row){ |
| | | console.log(row,"id"); |
| | | this.packageBoxId = { |
| | | packageBoxId:row[0].id |
| | | } |
| | | this.goid = row[0].id |
| | | list({packageBoxId:row[0].id}).then((res) =>{ |
| | | console.log(res,"nihaoa"); |
| | | this.testStandardParams = res.data.data |
| | | }) |
| | | }, |
| | | //详æ
æ·»å |
| | | relateOperationParam(){ |
| | | this.increase = true |
| | | }, |
| | | preserve(datalist){ |
| | | console.log(datalist); |
| | | this.testStandardParams = datalist |
| | | |
| | | }, |
| | | addpreserve(){ |
| | | console.log(this.testStandardParams,"ä¿åæ°æ®"); |
| | | this.testStandardParams.forEach(el => { |
| | | el.packageBoxId =this.goid |
| | | }); |
| | | console.log(this.testStandardParams,"niaho"); |
| | | saveList(this.testStandardParams).then((res) =>{ |
| | | console.log(res,"ä¿åç"); |
| | | this.$message.success('ä¿åæå') |
| | | this.testStandardParams |
| | | }) |
| | | }, |
| | | deleteadd(row){ |
| | | console.log(row,""); |
| | | deledata({id:row.id}).then((res)=>{ |
| | | this.$message.success('å 餿å') |
| | | this.testStandardParams |
| | | }) |
| | | } |
| | | }, |
| | | computed: { |
| | | }, |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | width="60%" |
| | | title="åæ°" |
| | | top="5vh" |
| | | :visible.sync="innerVisible" |
| | | :show="currshowlist" |
| | | @close="$emit('update:currshowlist', false)" |
| | | append-to-body |
| | | class="part-dialog" |
| | | > |
| | | <ttable |
| | | :table="table" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :ajaxFun="ajaxFun" |
| | | :bottomOffset="350" |
| | | ref="paramTable" |
| | | > |
| | | <template #toolbar></template> |
| | | </ttable> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="innerVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveSelectRow">ç¡® å®</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import { customerpage,pagedataadd } from '@/api/quality/Packaging_ledger' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | export default { |
| | | props:{ |
| | | currshowlist: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | datalistid:"", |
| | | ajaxFun: customerpage, |
| | | currentRow: false, |
| | | typeOptions: [], |
| | | innerVisible: false, |
| | | listLoading: true, |
| | | multipleSelection: [], |
| | | isShowQuery: false, |
| | | uploadInfo: { |
| | | // æ¯å¦å±ç¤ºä¸ä¼ EXCEL以å对åºçurl |
| | | isShow: false, |
| | | url: '' |
| | | }, |
| | | prelang: 'operation', |
| | | options: { |
| | | height: 300, // é»è®¤é«åº¦-为äºè¡¨å¤´åºå® |
| | | stripe: true, // æ¯å¦ä¸ºæé©¬çº¹ table |
| | | highlightCurrentRow: false, // æ¯å¦è¦é«äº®å½åè¡ |
| | | border: true, // æ¯å¦æçºµåè¾¹æ¡ |
| | | lazy: false, // æ¯å¦éè¦æå è½½ |
| | | fit: true, // åç宽度æ¯å¦èªæå¼ |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isShowHide: true, // æ¯å¦æ¾ç¤ºæ¾å½±æé® |
| | | isSearch: true, // é«çº§æ¥è¯¢æé® |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' } |
| | | }, |
| | | table: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | data: [], |
| | | // æ é¢ |
| | | column: [ |
| | | { |
| | | minWidth: 'code', |
| | | prop: 'contractNo', |
| | | label: 'ååå·', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'customerName', |
| | | label: '客æ·åç§°', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'customerNo', |
| | | label: '客æ·ç¼ç ', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'deliveryDate', |
| | | label: 'äº¤è´§æ¥æ', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'datetimerange' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'entityName', |
| | | label: 'å·¥ç¨åç§°', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | ], |
| | | }, |
| | | addOrUpdateVisible: false |
| | | } |
| | | }, |
| | | components: { |
| | | ttable |
| | | }, |
| | | watch: { |
| | | currshowlist() { |
| | | console.log(22211); |
| | | this.innerVisible = this.currshowlist |
| | | if (this.currshowlist) { |
| | | this.$nextTick(() => { |
| | | this.getData() |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | // ...mapGetters(['permissions']) |
| | | }, |
| | | created() { |
| | | this.getParamType() |
| | | }, |
| | | methods: { |
| | | // è·åæ°æ®å表 |
| | | getData() { |
| | | this.$refs.paramTable.getDataList() |
| | | }, |
| | | handleSelectionChange(val){ |
| | | let data = val |
| | | data.forEach(el => { |
| | | this.datalistid = el |
| | | }); |
| | | console.log(this.datalistid); |
| | | }, |
| | | saveSelectRow() { |
| | | pagedataadd ({customerId:this.datalistid.id,contractNo:this.datalistid.contractNo}).then((res =>{ |
| | | console.log(res); |
| | | if (res.status === 200) { |
| | | this.$message.success('æ°å¢æå') |
| | | }else{ |
| | | this.$message.error('å建失败') |
| | | } |
| | | })) |
| | | this.innerVisible = false |
| | | this.$emit('handleSelectionChange',this.innerVisible ) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | width="60%" |
| | | title="åæ°" |
| | | top="5vh" |
| | | :visible.sync="innerVisible" |
| | | :show="currshowlist" |
| | | @close="$emit('update:currshowlist', false)" |
| | | append-to-body |
| | | class="part-dialog" |
| | | > |
| | | <ttable |
| | | :table="table" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :ajaxFun="ajaxFun" |
| | | :paramObj="packageBoxIddata" |
| | | :bottomOffset="350" |
| | | ref="paramTable" |
| | | > |
| | | <template #toolbar></template> |
| | | </ttable> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="innerVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="saveSelectRow">ç¡® å®</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import { dataadd,saveList } from '@/api/quality/Packaging_ledger' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | export default { |
| | | props:{ |
| | | currshowlist: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | packageBoxIddata:{ |
| | | type: Object |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | datalist:[], |
| | | datalistid:"", |
| | | ajaxFun: dataadd, |
| | | currentRow: false, |
| | | typeOptions: [], |
| | | innerVisible: false, |
| | | listLoading: true, |
| | | multipleSelection: [], |
| | | isShowQuery: false, |
| | | uploadInfo: { |
| | | // æ¯å¦å±ç¤ºä¸ä¼ EXCEL以å对åºçurl |
| | | isShow: false, |
| | | url: '' |
| | | }, |
| | | prelang: 'operation', |
| | | options: { |
| | | height: 300, // é»è®¤é«åº¦-为äºè¡¨å¤´åºå® |
| | | stripe: true, // æ¯å¦ä¸ºæé©¬çº¹ table |
| | | highlightCurrentRow: false, // æ¯å¦è¦é«äº®å½åè¡ |
| | | border: true, // æ¯å¦æçºµåè¾¹æ¡ |
| | | lazy: false, // æ¯å¦éè¦æå è½½ |
| | | fit: true, // åç宽度æ¯å¦èªæå¼ |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isShowHide: true, // æ¯å¦æ¾ç¤ºæ¾å½±æé® |
| | | isSearch: true, // é«çº§æ¥è¯¢æé® |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' } |
| | | }, |
| | | table: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | data: [], |
| | | // æ é¢ |
| | | column: [ |
| | | { |
| | | minWidth: 'code', |
| | | prop: 'product', |
| | | label: '产å', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'productNo', |
| | | label: '产åç¼å·', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'specs', |
| | | label: 'è§æ ¼åå·', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'unit', |
| | | label: 'åä½', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'datetimerange' |
| | | }, |
| | | ], |
| | | }, |
| | | addOrUpdateVisible: false |
| | | } |
| | | }, |
| | | components: { |
| | | ttable |
| | | }, |
| | | watch: { |
| | | currshowlist() { |
| | | console.log(22211); |
| | | this.innerVisible = this.currshowlist |
| | | } |
| | | }, |
| | | computed: { |
| | | // ...mapGetters(['permissions']) |
| | | }, |
| | | created() { |
| | | this.getParamType() |
| | | }, |
| | | methods: { |
| | | // è·åæ°æ®å表 |
| | | getData() { |
| | | this.$refs.paramTable.getDataList() |
| | | }, |
| | | handleSelectionChange(val){ |
| | | let data = val |
| | | data.forEach(el => { |
| | | this.datalistid = el |
| | | }); |
| | | }, |
| | | saveSelectRow() { |
| | | console.log(this.packageBoxIddata,"123"); |
| | | saveList ({customerId:this.datalistid.id,contractNo:this.datalistid.contractNo}).then((res =>{ |
| | | console.log(res); |
| | | if (res.status === 200) { |
| | | this.$message.success('æ°å¢æå') |
| | | }else{ |
| | | this.$message.error('å建失败') |
| | | } |
| | | })) |
| | | this.innerVisible = false |
| | | // this.$emit('handleSelectionChange',this.innerVisible ) |
| | | }, |
| | | handleSelectionChange(val){ |
| | | this.datalist = val |
| | | console.log(this.datalist,"æ°æ®"); |
| | | }, |
| | | saveSelectRow(){ |
| | | this.$emit('handleSelectionChange',this.datalist ) |
| | | this.innerVisible = false |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | * é
ç½®åè: |
| | | * https://cli.vuejs.org/zh/config/ |
| | | */ |
| | | const url = 'http://192.168.2.63:9999' |
| | | const url = 'http://192.168.2.7:9999' |
| | | //const url = 'http://192.168.32.45:9999' |
| | | // const url = 'http://192.168.0.23:9999' |
| | | |