| | |
| | | <template> |
| | | <view> |
| | | <view class="head"> |
| | | <z-input v-for="it in page" |
| | | <z-input v-for="it in input" |
| | | :desc="it.title" |
| | | :name="it.name" |
| | | :btn="it.btn" |
| | |
| | | <z-data-list class="data-list" |
| | | v-for="(it,i) in zDataList" |
| | | :key="i" |
| | | :list="it.detl" |
| | | :lable="lable" |
| | | :fields="it" |
| | | :index="i+1" |
| | | @goDetail='goDetail(it.detl,i)' |
| | | ></z-data-list> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 垫高 --> |
| | | <view style="height: 100rpx;"></view> |
| | |
| | | data() { |
| | | return { |
| | | zDataList: [ |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 1}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 2}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 3}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 4}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 5}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 1}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 2}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 3}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)5.2x25'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 4}, |
| | | ] |
| | | }, |
| | | { |
| | | detl: [ |
| | | {key: '商品码',value: 'LSH90152025',valText: 'val-text'}, |
| | | {key: '商品名称',value: '尼龙头(灰白)'}, |
| | | {key: '规格',value: '700*699*80'}, |
| | | {key: '批号',value: '20231007204944',type: 'input'}, |
| | | {key: '数量',value: 951326478,type: 'number-box',valText: 'val-num'}, |
| | | {key: '序号',value: 5}, |
| | | ] |
| | | } |
| | | // {matnr: 'A1001',maktx: '1号物料',count: 99}, |
| | | // {matnr: 'A1002',maktx: '2号物料',count: 77}, |
| | | // {matnr: 'A1002',maktx: '2号物料',count: 77} |
| | | ], |
| | | list: [ |
| | | {} |
| | | ] |
| | | } |
| | | }, |
| | | onShow() { |
| | | console.log(this.page); |
| | | // console.log(this.page); |
| | | }, |
| | | computed: mapState({ |
| | | page: state => state.project.menu[0].page.input |
| | | input: state => state.project.menu[0].page.input, |
| | | lable: state => state.project.menu[0].page.lable |
| | | }), |
| | | methods: { |
| | | input2(arr) { |
| | |
| | | } |
| | | }, |
| | | async getMat(matnr) { |
| | | let mat = await addMat.addMat() |
| | | if (!addMat.isEmpty(mat)) { |
| | | this.zDataList.push(mat) |
| | | } |
| | | let mat = await addMat.addMat(matnr) |
| | | mat['count'] = 0 |
| | | this.zDataList.push(mat) |
| | | }, |
| | | goDetail(param,index) { |
| | | let _this = this |
| | | uni.navigateTo({ |
| | | url: '/pages/common/data-list/dataDetail', |
| | | // 传 |
| | | success: function(data) { |
| | | data.eventChannel.emit('param', { |
| | | param: param, |
| | | index: index |
| | | }) |
| | | }, |
| | | // 接 |
| | | events: { |
| | | dataList: function(data) { |
| | | console.log(data); |
| | | }, |
| | | del: function(data) { |
| | | _this.zDataList.splice(data.data,1) |
| | | } |
| | | }, |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |