|
@@ -24,6 +24,14 @@
|
|
|
"
|
|
"
|
|
|
>否</span
|
|
>否</span
|
|
|
>
|
|
>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ style="margin-left: 40px"
|
|
|
|
|
+ @click="checkUnpack"
|
|
|
|
|
+ >拆包</el-button
|
|
|
|
|
+ > -->
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="objData.isUnpack == '1'">
|
|
<div v-if="objData.isUnpack == '1'">
|
|
|
<div class="col userInp" style="display: flex; align-items: center">
|
|
<div class="col userInp" style="display: flex; align-items: center">
|
|
@@ -198,6 +206,71 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <div v-if="isNewUnpack">
|
|
|
|
|
+ <div class="col userInp" style="display: flex; align-items: center">
|
|
|
|
|
+ <div class="label lable150 rx-cc" style="width: 100px !important"
|
|
|
|
|
+ >规格选择:</div
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="Usertype"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @change="changeUserType"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in localdataList"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.text"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <div class="material">
|
|
|
|
|
+ <div class="content_table">
|
|
|
|
|
+ <div class="item">
|
|
|
|
|
+ <div class="lable rx-cc">包装总数 </div>
|
|
|
|
|
+ <div class="content content_num">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ class="uni-el-input"
|
|
|
|
|
+ v-model="formedNumLast"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ v-if="i == 0"
|
|
|
|
|
+ @input="changeinput"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ class="uni-el-input"
|
|
|
|
|
+ v-model="item.formedNumLast"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ v-else
|
|
|
|
|
+ disabled
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ <div class="unit">{{ item.packageUnit }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="item rx-sc">
|
|
|
|
|
+ <div class="rx ww55">
|
|
|
|
|
+ <div class="lable lable200 rx-cc">{{ item.titel }}单元</div>
|
|
|
|
|
+ <div class="content content_num">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ class="uni-el-input"
|
|
|
|
|
+ v-model="item.packageCell"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ <div class="unit">{{ item.packageUnit }}</div
|
|
|
|
|
+ >/<div class="unit">{{ item.conversionUnit }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div> -->
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -299,7 +372,8 @@
|
|
|
textValue: ''
|
|
textValue: ''
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- cacheKeyUrlMin: 'cacheKeyUrlMin'
|
|
|
|
|
|
|
+ cacheKeyUrlMin: 'cacheKeyUrlMin',
|
|
|
|
|
+ isNewUnpack: false
|
|
|
// clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId,
|
|
// clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -595,7 +669,6 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async packageDispositionFn() {
|
|
async packageDispositionFn() {
|
|
|
- console.log();
|
|
|
|
|
if (!this.newCategoryId) return;
|
|
if (!this.newCategoryId) return;
|
|
|
|
|
|
|
|
let that = this;
|
|
let that = this;
|
|
@@ -638,41 +711,14 @@
|
|
|
|
|
|
|
|
this.warehouseSpecTypeList.forEach((item) => {
|
|
this.warehouseSpecTypeList.forEach((item) => {
|
|
|
if (item.value == 2) {
|
|
if (item.value == 2) {
|
|
|
- // const num = res[0].packageCell ? res[0].packageCell : '';
|
|
|
|
|
- // const packageUnit = res[0].packageUnit ? res[0].packageUnit : '';
|
|
|
|
|
- // const conversionUnit = res[0].conversionUnit
|
|
|
|
|
- // ? res[0].conversionUnit
|
|
|
|
|
- // : '';
|
|
|
|
|
- // let packInfo = '';
|
|
|
|
|
- // if (num) {
|
|
|
|
|
- // packInfo = num + '/' + packageUnit + '/' + conversionUnit;
|
|
|
|
|
- // }
|
|
|
|
|
item.textValue = item.text + `(${this.selectPackInfo(res[0])})`;
|
|
item.textValue = item.text + `(${this.selectPackInfo(res[0])})`;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (item.value == 3) {
|
|
if (item.value == 3) {
|
|
|
- // const num = res[1].packageCell ? res[1].packageCell : '';
|
|
|
|
|
- // const packageUnit = res[1].packageUnit ? res[1].packageUnit : '';
|
|
|
|
|
- // const conversionUnit = res[1].conversionUnit
|
|
|
|
|
- // ? res[1].conversionUnit
|
|
|
|
|
- // : '';
|
|
|
|
|
- // let packInfo = '';
|
|
|
|
|
- // if (num) {
|
|
|
|
|
- // packInfo = num + '/' + packageUnit + '/' + conversionUnit;
|
|
|
|
|
- // }
|
|
|
|
|
item.textValue = item.text + `(${this.selectPackInfo(res[1])})`;
|
|
item.textValue = item.text + `(${this.selectPackInfo(res[1])})`;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (item.value == 4) {
|
|
if (item.value == 4) {
|
|
|
- // const num = res[2].packageCell ? res[2].packageCell : '';
|
|
|
|
|
- // const packageUnit = res[2].packageUnit ? res[2].packageUnit : '';
|
|
|
|
|
- // const conversionUnit = res[2].conversionUnit
|
|
|
|
|
- // ? res[2].conversionUnit
|
|
|
|
|
- // : '';
|
|
|
|
|
- // let packInfo = '';
|
|
|
|
|
- // if (num) {
|
|
|
|
|
- // packInfo = num + '/' + packageUnit + '/' + conversionUnit;
|
|
|
|
|
- // }
|
|
|
|
|
item.textValue = item.text + `(${this.selectPackInfo(res[2])})`;
|
|
item.textValue = item.text + `(${this.selectPackInfo(res[2])})`;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -717,6 +763,9 @@
|
|
|
} = res;
|
|
} = res;
|
|
|
let textList = [];
|
|
let textList = [];
|
|
|
let arr = [];
|
|
let arr = [];
|
|
|
|
|
+ if (!this.isNewUnpack) {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (this.warehouseId == 2) {
|
|
if (this.warehouseId == 2) {
|
|
|
textList.push('最小包装');
|
|
textList.push('最小包装');
|
|
|
arr.push({ list: minimumPackage });
|
|
arr.push({ list: minimumPackage });
|
|
@@ -808,6 +857,79 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ // checkUnpack() {
|
|
|
|
|
+ // this.$confirm('此操作将进行拆包, 是否继续?', '提示', {
|
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
|
+ // type: 'warning'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .then(() => {
|
|
|
|
|
+ // this.checkUnpackProduction();
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .catch(() => {});
|
|
|
|
|
+ // },
|
|
|
|
|
+
|
|
|
|
|
+ // checkUnpackProduction() {
|
|
|
|
|
+ // this.isNewUnpack = true;
|
|
|
|
|
+ // this.getPackingData();
|
|
|
|
|
+ // },
|
|
|
|
|
+
|
|
|
|
|
+ // async getPackingData() {
|
|
|
|
|
+ // if (!this.newCategoryId) return;
|
|
|
|
|
+
|
|
|
|
|
+ // let that = this;
|
|
|
|
|
+ // const res = await packageDisposition(this.newCategoryId);
|
|
|
|
|
+
|
|
|
|
|
+ // if (res.length) {
|
|
|
|
|
+ // res.shift();
|
|
|
|
|
+ // let data = JSON.parse(JSON.stringify(res));
|
|
|
|
|
+ // let list = this.groupBy(data, 'code');
|
|
|
|
|
+ // this.localdataList = [];
|
|
|
|
|
+ // Object.entries(list).forEach(([key, value]) => {
|
|
|
|
|
+ // let obj = {
|
|
|
|
|
+ // text: value[0].name,
|
|
|
|
|
+ // arr: value,
|
|
|
|
|
+ // value: key
|
|
|
|
|
+ // };
|
|
|
|
|
+ // this.localdataList.push(obj);
|
|
|
|
|
+ // });
|
|
|
|
|
+
|
|
|
|
|
+ // this.Usertype = this.localdataList[0].value;
|
|
|
|
|
+ // this.text = this.localdataList[0].text;
|
|
|
|
|
+ // this.value = this.localdataList[0].value;
|
|
|
|
|
+ // res.map((v) => {
|
|
|
|
|
+ // v.splitList = [];
|
|
|
|
|
+ // });
|
|
|
|
|
+
|
|
|
|
|
+ // this.newDispositionList = res;
|
|
|
|
|
+ // // if (this.warehouseId == 2) {
|
|
|
|
|
+ // // this.newDispositionList = [res[0]];
|
|
|
|
|
+ // // } else if (this.warehouseId == 3) {
|
|
|
|
|
+ // // this.newDispositionList = [res[1]];
|
|
|
|
|
+ // // } else if (this.warehouseId == 4) {
|
|
|
|
|
+ // // this.newDispositionList = [res[2]];
|
|
|
|
|
+ // // }
|
|
|
|
|
+ // this.selectList = res;
|
|
|
|
|
+ // this.initData(this.localdataList[0].arr);
|
|
|
|
|
+
|
|
|
|
|
+ // console.log(this.newDispositionList, 'this.newDispositionList');
|
|
|
|
|
+ // // this.initFn(this.localdataList[0].arr);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+
|
|
|
|
|
+ // initData(v) {
|
|
|
|
|
+ // if (v.length) {
|
|
|
|
|
+ // this.withinQuantity = v[1].packageCell; //内包装数量
|
|
|
|
|
+ // this.withinUnit = v[1].conversionUnit; //内包装单位
|
|
|
|
|
+ // this.outsideQuantity = v[2].packageCell; //外包装数量
|
|
|
|
|
+ // this.outsideUnit = v[2].conversionUnit; //外包装单位
|
|
|
|
|
+ // this.minimumUnit = v[0].conversionUnit;
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
|
|
+ // console.log(v[0], 'v[0]');
|
|
|
|
|
+ // // this.handleSplit(v[0]);
|
|
|
|
|
+ // },
|
|
|
|
|
+
|
|
|
// 第一次调用
|
|
// 第一次调用
|
|
|
handleSplit(v) {
|
|
handleSplit(v) {
|
|
|
console.log(v, 99655);
|
|
console.log(v, 99655);
|