|
|
@ -139,14 +139,14 @@ |
|
|
<el-input v-model="modalData.spec" style="width: 477px"></el-input> |
|
|
<el-input v-model="modalData.spec" style="width: 477px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="BU" prop="bu"> |
|
|
<el-form-item label="BU" prop="bu"> |
|
|
<el-select v-model="modalData.bu" placeholder="请选择" :disabled="modalDisableFlag" style="width: 216px"> |
|
|
|
|
|
|
|
|
<el-select v-model="modalData.bu" placeholder="请选择" :disabled="modalDisableFlag" style="width: 100px"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for = "i in userBuList" |
|
|
v-for = "i in userBuList" |
|
|
:key = "i.buNo" |
|
|
:key = "i.buNo" |
|
|
:label = "i.buDesc" |
|
|
:label = "i.buDesc" |
|
|
:value = "i.buNo"> |
|
|
:value = "i.buNo"> |
|
|
<span style="float: left;width: 100px">{{ i.sitename }}</span> |
|
|
|
|
|
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">{{ i.buDesc }}</span> |
|
|
|
|
|
|
|
|
<!-- <span style="float: left;width: 100px">{{ i.sitename }}</span>--> |
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">{{ i.buDesc }}</span>--> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -156,74 +156,75 @@ |
|
|
<el-option label="否" value="N"></el-option> |
|
|
<el-option label="否" value="N"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="零件类型"> |
|
|
|
|
|
<el-select v-model="modalData.partType" style="width: 160px"> |
|
|
|
|
|
<el-option label="Manufactured" value="Manufactured"></el-option> |
|
|
|
|
|
<el-option label="Manufactured Recipe" value="Manufactured Recipe"></el-option> |
|
|
|
|
|
<el-option label="Purchased (raw)" value="Purchased (raw)"></el-option> |
|
|
|
|
|
<el-option label="Purchased" value="Purchased"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item v-if="modalData.flag === '2'" :label="' '"> |
|
|
<el-form-item v-if="modalData.flag === '2'" :label="' '"> |
|
|
<el-button type="primary" @click="toCopyPartModal">Copy</el-button> |
|
|
<el-button type="primary" @click="toCopyPartModal">Copy</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-tabs v-model="inventoryPartTable" style="width: 100%;height: 345px;" type="border-card" @tab-click="inventoryPartClick"> |
|
|
|
|
|
|
|
|
<el-tabs v-model="inventoryPartTable" style="width: 100%;height: 305px;" type="border-card" @tab-click="inventoryPartClick"> |
|
|
<el-tab-pane label="General" name="General"> |
|
|
<el-tab-pane label="General" name="General"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form-item label="PN"> |
|
|
|
|
|
<el-input v-model="modalData.cinvSourceCode" style="width: 144px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="SKU"> |
|
|
|
|
|
<el-input v-model="modalData.sku" style="width: 144px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="cinvcname"> |
|
|
|
|
|
<el-input v-model="modalData.cinvcname" style="width: 145px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="Part Type"> |
|
|
|
|
|
<el-select v-model="modalData.partType" style="width: 160px"> |
|
|
|
|
|
<el-option label="Manufactured" value="Manufactured"></el-option> |
|
|
|
|
|
<el-option label="Manufactured Recipe" value="Manufactured Recipe"></el-option> |
|
|
|
|
|
<el-option label="Purchased (raw)" value="Purchased (raw)"></el-option> |
|
|
|
|
|
<el-option label="Purchased" value="Purchased"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="物料类别"> |
|
|
|
|
|
<el-input v-model="modalData.invdefinetype" style="width: 174px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="controlMes" label="controlMes"> |
|
|
|
|
|
<el-select v-model="modalData.controlMes" style="width: 100px"> |
|
|
|
|
|
<el-option label="是" value="Y"></el-option> |
|
|
|
|
|
<el-option label="否" value="N"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<!-- <el-form-item label="PN">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.cinvSourceCode" style="width: 144px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
<!-- <el-form-item label="SKU">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.sku" style="width: 144px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
<!-- <el-form-item label="cinvcname">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.cinvcname" style="width: 145px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="物料类别">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.invdefinetype" style="width: 174px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
<!-- <el-form-item prop="controlMes" label="controlMes">--> |
|
|
|
|
|
<!-- <el-select v-model="modalData.controlMes" style="width: 100px">--> |
|
|
|
|
|
<!-- <el-option label="是" value="Y"></el-option>--> |
|
|
|
|
|
<!-- <el-option label="否" value="N"></el-option>--> |
|
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form-item label="Qty Box Roll"> |
|
|
|
|
|
<el-input v-model="modalData.qtyBoxRoll" style="width: 144px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="Qty Roll"> |
|
|
|
|
|
<el-input v-model="modalData.qtyRoll" style="width: 144px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="Standard Box Qty"> |
|
|
|
|
|
<el-input v-model="modalData.standardBoxQty" style="width: 145px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<!-- <el-form-item label="Qty Box Roll">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.qtyBoxRoll" style="width: 144px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
<!-- <el-form-item label="Qty Roll">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.qtyRoll" style="width: 144px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
<!-- <el-form-item label="Standard Box Qty">--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.standardBoxQty" style="width: 145px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
<el-form-item prop="umId"> |
|
|
<el-form-item prop="umId"> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(510)"><a herf="#">计量单位 / Inventory UoM</a></span> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(510)"><a herf="#">计量单位</a></span> |
|
|
<el-input v-model="modalData.umId" @blur="umIdBlur(510)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.umId" @blur="umIdBlur(510)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.umName" disabled style="width: 330px"></el-input> |
|
|
<el-input v-model="modalData.umName" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
|
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(511)"><a herf="#">默认仓库</a></span> |
|
|
|
|
|
<el-input v-model="modalData.defaultWarehouseID" @blur="defaultWarehouseBlur(511)" style="width: 128px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.defaultWarehouseName" disabled style="width: 330px"></el-input> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(214)"><a herf="#">物料分类</a></span> |
|
|
|
|
|
<el-input v-model="modalData.familyID" @blur="partFamilyBlur(214)" style="width: 128px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.familyName" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
|
|
|
<!-- <el-form-item>--> |
|
|
|
|
|
<!-- <span style="cursor: pointer" slot="label" @click="getBaseList(511)"><a herf="#">默认仓库</a></span>--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.defaultWarehouseID" @blur="defaultWarehouseBlur(511)" style="width: 128px"></el-input>--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.defaultWarehouseName" disabled style="width: 330px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(211)"><a herf="#">商品组1</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(211)"><a herf="#">商品组1</a></span> |
|
|
<el-input v-model="modalData.otherGroup1" @blur="productGroupId1Blur(211)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.otherGroup1" @blur="productGroupId1Blur(211)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.otherGroupName1" disabled style="width: 330px"></el-input> |
|
|
<el-input v-model="modalData.otherGroupName1" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(214)"><a herf="#">物料分类</a></span> |
|
|
|
|
|
<el-input v-model="modalData.familyID" @blur="partFamilyBlur(214)" style="width: 128px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.familyName" disabled style="width: 330px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(212)"><a herf="#">商品组2</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(212)"><a herf="#">商品组2</a></span> |
|
|
<el-input v-model="modalData.otherGroup2" @blur="productGroupId2Blur(212)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.otherGroup2" @blur="productGroupId2Blur(212)" style="width: 128px"></el-input> |
|
|
@ -231,16 +232,16 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form-item prop="codeNo" :rules="rules.codeNo"> |
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(219)"><a herf="#">属性模板</a></span> |
|
|
|
|
|
<el-input v-model="modalData.codeNo" @blur="modelBlur(219)" style="width: 128px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.codeDesc" disabled style="width: 330px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(213)"><a herf="#">商品组3</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(213)"><a herf="#">商品组3</a></span> |
|
|
<el-input v-model="modalData.otherGroup3" @blur="productGroupId3Blur(213)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.otherGroup3" @blur="productGroupId3Blur(213)" style="width: 128px"></el-input> |
|
|
<el-input v-model="modalData.otherGroupName3" disabled style="width: 330px"></el-input> |
|
|
<el-input v-model="modalData.otherGroupName3" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="codeNo" :rules="rules.codeNo"> |
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(219)"><a herf="#">属性模板</a></span> |
|
|
|
|
|
<el-input v-model="modalData.codeNo" @blur="modelBlur(219)" style="width: 128px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.codeDesc" disabled style="width: 330px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">--> |
|
|
<!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">--> |
|
|
<!-- <el-form-item label="Mold Code">--> |
|
|
<!-- <el-form-item label="Mold Code">--> |
|
|
@ -265,16 +266,15 @@ |
|
|
<!-- </el-form-item>--> |
|
|
<!-- </el-form-item>--> |
|
|
<!-- </el-form>--> |
|
|
<!-- </el-form>--> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
<el-form-item label="备注" style="height: 80px"> |
|
|
|
|
|
<el-input type="textarea" v-model="modalData.remark" :rows="3" resize='none' show-word-limit style="width: 937px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item label="备注" style="height: 135px"> |
|
|
|
|
|
<el-input type="textarea" v-model="modalData.remark" :rows="5" resize='none' show-word-limit style="width: 939px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:35px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:35px;margin-top: 20px;text-align:center"> |
|
|
<el-button v-if="modalData.flag === '3'" type="primary" @click="saveData">同步</el-button> |
|
|
|
|
|
<el-button v-else type="primary" @click="saveData">保存</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveData">保存</el-button> |
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
@ -1259,6 +1259,24 @@ |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
// ======== 列表表头 ======== |
|
|
// ======== 列表表头 ======== |
|
|
columnList: [ |
|
|
columnList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1Bu', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'buDesc', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: 'BU', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 601001, |
|
|
functionId: 601001, |
|
|
@ -1298,20 +1316,20 @@ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 601001, |
|
|
functionId: 601001, |
|
|
serialNumber: '601001Table1StatusDesc', |
|
|
|
|
|
|
|
|
serialNumber: '601001Table1PartDesceEn', |
|
|
tableId: '601001Table1', |
|
|
tableId: '601001Table1', |
|
|
tableName: '物料信息表', |
|
|
tableName: '物料信息表', |
|
|
columnProp: 'statusDesc', |
|
|
|
|
|
|
|
|
columnProp: 'partDesceEn', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '物料状态', |
|
|
|
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '物料描述(英文)', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100 |
|
|
|
|
|
|
|
|
columnWidth: 300 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1322,7 +1340,7 @@ |
|
|
columnProp: 'spec', |
|
|
columnProp: 'spec', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
columnLabel: '规格型号', |
|
|
|
|
|
|
|
|
columnLabel: '规格', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -1334,20 +1352,20 @@ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 601001, |
|
|
functionId: 601001, |
|
|
serialNumber: '601001Table1UmId', |
|
|
|
|
|
|
|
|
serialNumber: '601001Table1ActiveDesc', |
|
|
tableId: '601001Table1', |
|
|
tableId: '601001Table1', |
|
|
tableName: '物料信息表', |
|
|
tableName: '物料信息表', |
|
|
columnProp: 'umId', |
|
|
|
|
|
|
|
|
columnProp: 'activeDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '计量单位', |
|
|
|
|
|
|
|
|
columnLabel: '是否在用', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 80 |
|
|
|
|
|
|
|
|
columnWidth: 100 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1367,6 +1385,60 @@ |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 150 |
|
|
columnWidth: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1UmId', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'umId', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '计量单位编码', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1UmName', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'umName', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '计量单位名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1FamilyID', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'familyID', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '物料分类编码', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 150 |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 601001, |
|
|
functionId: 601001, |
|
|
@ -1375,15 +1447,33 @@ |
|
|
tableName: '物料信息表', |
|
|
tableName: '物料信息表', |
|
|
columnProp: 'familyName', |
|
|
columnProp: 'familyName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '物料分类名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1OtherGroup1', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'otherGroup1', |
|
|
|
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '物料分类', |
|
|
|
|
|
|
|
|
columnLabel: '商品组1编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 120 |
|
|
|
|
|
|
|
|
columnWidth: 150 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1393,15 +1483,33 @@ |
|
|
tableName: '物料信息表', |
|
|
tableName: '物料信息表', |
|
|
columnProp: 'otherGroupName1', |
|
|
columnProp: 'otherGroupName1', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '商品组1名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1OtherGroup2', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'otherGroup2', |
|
|
|
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '商品组1', |
|
|
|
|
|
|
|
|
columnLabel: '商品组2编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100 |
|
|
|
|
|
|
|
|
columnWidth: 150 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1409,17 +1517,35 @@ |
|
|
serialNumber: '601001Table1OtherGroupName2', |
|
|
serialNumber: '601001Table1OtherGroupName2', |
|
|
tableId: '601001Table1', |
|
|
tableId: '601001Table1', |
|
|
tableName: '物料信息表', |
|
|
tableName: '物料信息表', |
|
|
columnProp: 'otherGroupName1', |
|
|
|
|
|
|
|
|
columnProp: 'otherGroupName2', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '商品组2名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1OtherGroup3', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'otherGroup3', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '商品组2', |
|
|
|
|
|
|
|
|
columnLabel: '商品组3编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100 |
|
|
|
|
|
|
|
|
columnWidth: 150 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1427,17 +1553,53 @@ |
|
|
serialNumber: '601001Table1OtherGroupName3', |
|
|
serialNumber: '601001Table1OtherGroupName3', |
|
|
tableId: '601001Table1', |
|
|
tableId: '601001Table1', |
|
|
tableName: '物料信息表', |
|
|
tableName: '物料信息表', |
|
|
columnProp: 'otherGroupName1', |
|
|
|
|
|
|
|
|
columnProp: 'otherGroupName3', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '商品组3名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1CodeNo', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'codeNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '商品组3', |
|
|
|
|
|
|
|
|
columnLabel: '属性模板编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100 |
|
|
|
|
|
|
|
|
columnWidth: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 601001, |
|
|
|
|
|
serialNumber: '601001Table1CodeDesc', |
|
|
|
|
|
tableId: '601001Table1', |
|
|
|
|
|
tableName: '物料信息表', |
|
|
|
|
|
columnProp: 'codeDesc', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '属性模板名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1455,7 +1617,7 @@ |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 200 |
|
|
|
|
|
|
|
|
columnWidth: 300 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1491,7 +1653,7 @@ |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 80 |
|
|
|
|
|
|
|
|
columnWidth: 100 |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
columnItemList: [ |
|
|
columnItemList: [ |
|
|
@ -2573,7 +2735,7 @@ |
|
|
umId: '', |
|
|
umId: '', |
|
|
umName: '', |
|
|
umName: '', |
|
|
spec: '', |
|
|
spec: '', |
|
|
active: '', |
|
|
|
|
|
|
|
|
active: 'Y', |
|
|
cinvSourceCode: '', |
|
|
cinvSourceCode: '', |
|
|
sku: '', |
|
|
sku: '', |
|
|
qtyBoxRoll: '', |
|
|
qtyBoxRoll: '', |
|
|
@ -3367,16 +3529,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.umId = data.baseListData[0].UMID |
|
|
this.modalData.umId = data.baseListData[0].UMID |
|
|
this.modalData.umName = data.baseListData[0].UMName |
|
|
this.modalData.umName = data.baseListData[0].UMName |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该计量单位不存在!') |
|
|
|
|
|
this.modalData.umName = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.umName = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.umName = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 商品组1输入校验 |
|
|
// 商品组1输入校验 |
|
|
@ -3391,16 +3549,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.otherGroup1 = data.baseListData[0].product_group_id |
|
|
this.modalData.otherGroup1 = data.baseListData[0].product_group_id |
|
|
this.modalData.otherGroupName1 = data.baseListData[0].product_group_name |
|
|
this.modalData.otherGroupName1 = data.baseListData[0].product_group_name |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该商品组1不存在!') |
|
|
|
|
|
this.modalData.otherGroupName1 = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.otherGroupName1 = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.otherGroupName1 = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 商品组2输入校验 |
|
|
// 商品组2输入校验 |
|
|
@ -3415,16 +3569,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.otherGroup2 = data.baseListData[0].product_group_id |
|
|
this.modalData.otherGroup2 = data.baseListData[0].product_group_id |
|
|
this.modalData.otherGroupName2 = data.baseListData[0].product_group_name |
|
|
this.modalData.otherGroupName2 = data.baseListData[0].product_group_name |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该商品组2不存在!') |
|
|
|
|
|
this.modalData.otherGroupName2 = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.otherGroupName2 = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.otherGroupName2 = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 商品组3输入校验 |
|
|
// 商品组3输入校验 |
|
|
@ -3439,16 +3589,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.otherGroup3 = data.baseListData[0].product_group_id |
|
|
this.modalData.otherGroup3 = data.baseListData[0].product_group_id |
|
|
this.modalData.otherGroupName3 = data.baseListData[0].product_group_name |
|
|
this.modalData.otherGroupName3 = data.baseListData[0].product_group_name |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该商品组3不存在!') |
|
|
|
|
|
this.modalData.otherGroupName3 = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.otherGroupName3 = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.otherGroupName3 = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 默认仓库输入校验 |
|
|
// 默认仓库输入校验 |
|
|
@ -3463,16 +3609,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.defaultWarehouseID = data.baseListData[0].warehouse_id |
|
|
this.modalData.defaultWarehouseID = data.baseListData[0].warehouse_id |
|
|
this.modalData.defaultWarehouseName = data.baseListData[0].warehouse_name |
|
|
this.modalData.defaultWarehouseName = data.baseListData[0].warehouse_name |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该默认仓库不存在!') |
|
|
|
|
|
this.modalData.defaultWarehouseName = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.defaultWarehouseName = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.defaultWarehouseName = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 物料分类输入校验 |
|
|
// 物料分类输入校验 |
|
|
@ -3487,16 +3629,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.familyID = data.baseListData[0].family_id |
|
|
this.modalData.familyID = data.baseListData[0].family_id |
|
|
this.modalData.familyName = data.baseListData[0].family_name |
|
|
this.modalData.familyName = data.baseListData[0].family_name |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该物料分类不存在!') |
|
|
|
|
|
this.modalData.familyName = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.familyName = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.familyName = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 属性输入校验 |
|
|
// 属性输入校验 |
|
|
@ -3511,16 +3649,12 @@ |
|
|
if (data.baseListData.length > 0) { |
|
|
if (data.baseListData.length > 0) { |
|
|
this.modalData.codeNo = data.baseListData[0].code_no |
|
|
this.modalData.codeNo = data.baseListData[0].code_no |
|
|
this.modalData.codeDesc = data.baseListData[0].code_desc |
|
|
this.modalData.codeDesc = data.baseListData[0].code_desc |
|
|
} else { |
|
|
|
|
|
this.$message.warning('该属性模板不存在!') |
|
|
|
|
|
this.modalData.codeDesc = '' |
|
|
|
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
this.modalData.codeDesc = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.modalData.codeDesc = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// ======== chooseList相关方法 ======== |
|
|
// ======== chooseList相关方法 ======== |
|
|
@ -3543,7 +3677,7 @@ |
|
|
} |
|
|
} |
|
|
if (val === 510) { |
|
|
if (val === 510) { |
|
|
strVal = this.modalData.umId |
|
|
strVal = this.modalData.umId |
|
|
conSql = '' |
|
|
|
|
|
|
|
|
conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" |
|
|
} else if (val === 211) { |
|
|
} else if (val === 211) { |
|
|
strVal = this.modalData.otherGroup1 |
|
|
strVal = this.modalData.otherGroup1 |
|
|
} else if (val === 212) { |
|
|
} else if (val === 212) { |
|
|
|