| | |
| | | customHeaderCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | |
| | | customHeaderCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | |
| | | <template> |
| | | <a-modal :title="title" :width="1200" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | <a-modal :title="title" :width="1300" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | @cancel="handleCancel"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <!-- tab --> |
| | |
| | | <a-form-item label="控制属性规则" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-input disabled placeholder="请输入控制属性规则编号" v-decorator="['ruleCode', {rules: [{required: true, message: '请输入控制属性规则编号!'}]}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="控制属性规则名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-input disabled placeholder="请输入控制属性规则名称" v-decorator="['ruleName', {rules: [{required: true, message: '请输入控制属性规则名称!'}]}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="最高库存" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-input disabled placeholder="请输入最高库存" v-decorator="['maxImumqty']" /> |
| | | </a-form-item> |
| | |
| | | > |
| | | </div> --> |
| | | </template> |
| | | <span slot="isNotChekscopedSlots" slot-scope="text"> |
| | | <div v-if="text===true "> |
| | | <a-tag color="green">是</a-tag> |
| | | </div> |
| | | <div v-else-if="text==false"> |
| | | <a-tag color="volcano">否</a-tag> |
| | | </div> |
| | | <div v-else=""></div> |
| | | </span> |
| | | <span slot="isDisabledscopedSlots" slot-scope="text"> |
| | | <div v-if="text === true"> |
| | | <a-tag color="green">是</a-tag> |
| | |
| | | </div> |
| | | <div v-else=""></div> |
| | | </span> |
| | | |
| | | <!-- <span slot="action" slot-scope="text, record"> |
| | | <a v-if="hasPerm('WmsControlRule:getdetail')" @click="$refs.detailForm.edit(record)">详情</a> |
| | | |
| | | </a-popconfirm> |
| | | </span> --> |
| | | </s-table> |
| | | |
| | | </a-card> |
| | | </div> |
| | | </template> |
| | |
| | | export default { |
| | | // mixins: [setTableHtMixin], |
| | | components: { |
| | | STable, |
| | | STable |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | |
| | | dataIndex: 'ruleCode' |
| | | }, |
| | | { |
| | | title: '控制属性规则名称', |
| | | align: 'center', |
| | | customHeaderCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '150px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | sorter: true, |
| | | dataIndex: 'ruleName' |
| | | }, |
| | | { |
| | | title: '最高库存', |
| | | align: 'center', |
| | | customHeaderCell: () => { |
| | |
| | | this.list = param |
| | | }, |
| | | handleSubmit() { |
| | | var selectedRowsArrMy = this.$refs.showList.selectedRows; |
| | | console.log("3333333") |
| | | console.log(selectedRowsArrMy) |
| | | if(this.list.length==0){ |
| | | this.list = selectedRowsArrMy |
| | | }else{ |
| | | var arr1 = [] |
| | | this.list.forEach(item => { |
| | | var itemArr = selectedRowsArrMy.filter(v=>v.id != item.id) |
| | | if(itemArr.length>0){ |
| | | //arr1.push(itemArr[0]) |
| | | arr1.concat(itemArr) |
| | | } |
| | | }) |
| | | this.list.concat(arr1) |
| | | } |
| | | this.visible = false |
| | | }, |
| | | handleCancel() { |
| | |
| | | onSelectChange(selectedRowKeys, selectedRows) { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectedRows = selectedRows |
| | | this.$emit('ok', selectedRows) |
| | | // this.$emit('ok', selectedRows) |
| | | } |
| | | } |
| | | } |