| | |
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('model'),
|
| | | },
|
| | | // {
|
| | | // title: formatMessage('db.man_loc_detl.model', '品类'),
|
| | | // dataIndex: 'tagId$',
|
| | | // width: 140,
|
| | | // ellipsis: true,
|
| | | // ...getColumnSearchProps('tagId$'),
|
| | | // },
|
| | | {
|
| | | title: formatMessage('db.man_loc_detl.dewell', '入库时间'),
|
| | | dataIndex: 'dewell$',
|
| | |
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('anfme'),
|
| | | },
|
| | | // {
|
| | | // title: formatMessage('db.man_loc_detl.freeze', '是否冻结'),
|
| | | // dataIndex: 'freeze$',
|
| | | // width: 140,
|
| | | // ellipsis: true,
|
| | | // ...getColumnSearchProps('freeze$'),
|
| | | // },
|
| | | {
|
| | | title: formatMessage('db.man_loc_detl.freeze', '是否冻结'),
|
| | | dataIndex: 'freeze$',
|
| | | title: formatMessage('db.man_loc_detl.type', '类型'),
|
| | | dataIndex: 'type',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('freeze$'),
|
| | | ...getColumnSearchProps('type'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_loc_detl.status', '状态'),
|
| | |
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('status$'),
|
| | | },
|
| | | // {
|
| | | // title: formatMessage('db.man_loc_detl.create_time', '添加时间'),
|
| | | // dataIndex: 'createTime$',
|
| | | // width: 140,
|
| | | // ellipsis: true,
|
| | | // ...getColumnSearchProps('createTime$'),
|
| | | // },
|
| | | // {
|
| | | // title: formatMessage('db.man_loc_detl.create_by', '添加人员'),
|
| | | // dataIndex: 'createBy$',
|
| | | // width: 140,
|
| | | // ellipsis: true,
|
| | | // ...getColumnSearchProps('createBy$'),
|
| | | // },
|
| | | {
|
| | | title: formatMessage('db.man_loc_detl.update_time', '修改时间'),
|
| | | dataIndex: 'updateTime$',
|
| | |
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('memo'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('common.operation', '操作'),
|
| | | name: 'oper',
|
| | | dataIndex: 'oper',
|
| | | key: 'oper',
|
| | | width: 140,
|
| | | fixed: 'right',
|
| | | },
|
| | | ];
|
| | |
|
| | |
| | | }
|
| | |
|
| | | const handleEdit = (item) => {
|
| | | editChild.value.open = true;
|
| | | editChild.value.formData = item == null ? editChild.value.initFormData : JSON.parse(JSON.stringify(item));
|
| | | editChild.value.isSave = item == null;
|
| | | let content = "是否确认生成-->出库任务!!"
|
| | | let type = 2
|
| | | if (item?.locNo.indexOf("B") >= 0 || item?.locNo.indexOf("C") >= 0) {
|
| | | content = "是否确认生成-->拣货单!!"
|
| | | type = 1
|
| | | }
|
| | | Modal.confirm({
|
| | | title: formatMessage('page.delete', '出库'),
|
| | | content: formatMessage('page.delete.confirm', content),
|
| | | maskClosable: true,
|
| | | onOk: async () => {
|
| | | const hide = message.loading(formatMessage('common.loading', '请求中'));
|
| | | try {
|
| | | let params = {
|
| | | outType: type,
|
| | | locDetls: [item]
|
| | | }
|
| | | post('/api/out/locs/stock', params).then(resp => {
|
| | | let result = resp.data;
|
| | | if (result.code === 200) {
|
| | | console.log(result);
|
| | | message.success(result.msg);
|
| | | } else {
|
| | | message.error(result.msg); |
| | | }
|
| | | getPage()
|
| | | hide()
|
| | | })
|
| | | } catch (error) {
|
| | | message.error(formatMessage('common.fail', '请求失败'));
|
| | | }
|
| | | },
|
| | | });
|
| | |
|
| | | // editChild.value.open = true;
|
| | | // editChild.value.formData = item == null ? editChild.value.initFormData : JSON.parse(JSON.stringify(item));
|
| | | // editChild.value.isSave = item == null;
|
| | | }
|
| | |
|
| | | const handleDel = (rows) => {
|
| | |
| | | style="width: 140px;margin-right: 10px;" />
|
| | | <a-input v-model:value="searchParam.batch" :placeholder="formatMessage('page.locDetl.batch.input', '请输入批号')"
|
| | | style="width: 140px;margin-right: 10px;" />
|
| | | <a-select v-model:value="searchParam.tagId" :placeholder="formatMessage('page.locDetl.orderNo.input', '请选择品类')" :options="[
|
| | | <a-select v-model:value="searchParam.tagId" :placeholder="formatMessage('page.locDetl.orderNo.input', '请选择品类')"
|
| | | :options="[
|
| | | { label: '默认分类', value: 10 },{ label: '机油', value: 11 }, { label: '变速箱油', value: 17 }, { label: '火花塞', value: 18 },
|
| | | { label: '养护品', value: 25 },{ label: '油漆耗材', value: 26 }, { label: '球头摆臂', value: 27 }, { label: '砂纸类', value: 31 },
|
| | | { label: '菜瓜布', value: 32 }, { label: '遮蔽类', value: 33 }, { label: '抛光类', value: 34 }, { label: '除尘类', value: 35 },
|
| | |
| | | <template #bodyCell="{ column, text, record }">
|
| | | <template v-if="column.dataIndex === 'oper'">
|
| | | <div style="display: flex;justify-content: space-evenly;">
|
| | | <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '编辑') }}</a-button>
|
| | | <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')
|
| | | }}</a-button>
|
| | | <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '手动出库') }}</a-button>
|
| | | <!-- <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')}}</a-button> -->
|
| | | </div>
|
| | | </template>
|
| | | </template>
|