|
@@ -197,8 +197,6 @@ const treeChangeSelect = (e) => {
|
|
|
return x.value == e
|
|
|
});
|
|
|
abnormalHandleTypeChileDict.value = abnormalStatusDict[0].chile
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -578,17 +576,9 @@ const openHandleAction = (row,isView) => {
|
|
|
formData.data.abnormalStatus = row.exHandle.substring(0,2)
|
|
|
//处理方案
|
|
|
treeChangeSelect(formData.data.abnormalStatus)
|
|
|
-
|
|
|
-
|
|
|
formData.data.absoluteValue = absoluteValue
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}else {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
formData.data = {
|
|
|
id:row.id,
|
|
|
reduceQuantity : absoluteValue,
|
|
@@ -637,111 +627,42 @@ const next = async () => {
|
|
|
if (isViewFlag.value){
|
|
|
reduceProductIdDisplay.value = true
|
|
|
addProductIdDisplay.value = true
|
|
|
+ }else {
|
|
|
+ formData.data.reduceProductId = null
|
|
|
+ formData.data.addProductId = null
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//判断 出库
|
|
|
if (['101','402','403'].indexOf(type)>-1){
|
|
|
reduceFlag.value = true
|
|
|
}
|
|
|
//判断 出库
|
|
|
if (!isViewFlag.value){
|
|
|
- formData.data.reduceProductId = null
|
|
|
if (['101',].indexOf(type)>-1){
|
|
|
formData.data.reduceProductId = formData.data.productId
|
|
|
reduceProductIdDisplay.value = true
|
|
|
-
|
|
|
- proxy.post("/jdOrderEx/productInfoById", { productId: formData.data.productId}).then((res) => {
|
|
|
- console.log("reduceProductList",res)
|
|
|
- console.log("reduceProductList",res.data)
|
|
|
- if (res && res.length > 0) {
|
|
|
- reduceProductList.value = res.map((item) => {
|
|
|
- return {
|
|
|
- label: item.name,
|
|
|
- value: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- addProductList.value = productList.value
|
|
|
- }
|
|
|
- }else {
|
|
|
- if (['101'].indexOf(type)>-1){
|
|
|
-
|
|
|
- proxy.post("/jdOrderEx/productInfoById", { productId: formData.data.productId}).then((res) => {
|
|
|
- console.log("reduceProductList",res)
|
|
|
- console.log("reduceProductList",res.data)
|
|
|
- if (res && res.length > 0) {
|
|
|
- reduceProductList.value = res.map((item) => {
|
|
|
- return {
|
|
|
- label: item.name,
|
|
|
- value: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- addProductList.value = productList.value
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//判断 入库
|
|
|
if (['301','401','402','403','501'].indexOf(type)>-1){
|
|
|
addFlag.value = true
|
|
|
}
|
|
|
-
|
|
|
//判断 入库
|
|
|
if (!isViewFlag.value) {
|
|
|
- formData.data.addProductId = null
|
|
|
if (['301', '401','402','403','501'].indexOf(type) > -1) {
|
|
|
formData.data.addProductId = formData.data.productId
|
|
|
addProductIdDisplay.value = true
|
|
|
-
|
|
|
-
|
|
|
- proxy.post("/jdOrderEx/productInfoById", { productId: formData.data.productId }).then((res) => {
|
|
|
- if (res && res.length > 0) {
|
|
|
- addProductList.value = res.map((item) => {
|
|
|
- return {
|
|
|
- label: item.name,
|
|
|
- value: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- reduceProductList.value = productList.value
|
|
|
}
|
|
|
- }else {
|
|
|
- if (['301', '401','402','403','501'].indexOf(type) > -1) {
|
|
|
- addProductIdDisplay.value = true
|
|
|
- proxy.post("/jdOrderEx/productInfoById", { productId: formData.data.productId }).then((res) => {
|
|
|
- if (res && res.length > 0) {
|
|
|
- addProductList.value = res.map((item) => {
|
|
|
- return {
|
|
|
- label: item.name,
|
|
|
- value: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- reduceProductList.value = productList.value
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+ handProductList()
|
|
|
//判断 备注
|
|
|
if (['201','203','403','503'].indexOf(type)>-1){
|
|
|
remarkFlag.value = true
|
|
|
}
|
|
|
-
|
|
|
//判断 快递
|
|
|
if (['401','501'].indexOf(type)>-1){
|
|
|
deliveryFlag.value = true
|
|
|
}
|
|
|
-
|
|
|
//判断 提示
|
|
|
if (['101','202','402','502'].indexOf(type)>-1){
|
|
|
tipsFlag.value = true
|
|
@@ -753,6 +674,37 @@ const back = () => {
|
|
|
stepsActiveindex.value--
|
|
|
}
|
|
|
|
|
|
+const handProductList = () => {
|
|
|
+ if (!isNullOrUndefined(formData.data.addProductId)){
|
|
|
+ proxy.post("/jdOrderEx/productInfoById", { productId: formData.data.addProductId }).then((res) => {
|
|
|
+ if (res && res.length > 0) {
|
|
|
+ addProductList.value = res.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ addProductList.value = productList.value
|
|
|
+ }
|
|
|
+ if (!isNullOrUndefined(formData.data.reduceProductId)){
|
|
|
+ proxy.post("/jdOrderEx/productInfoById", { productId: formData.data.reduceProductId }).then((res) => {
|
|
|
+ if (res && res.length > 0) {
|
|
|
+ reduceProductList.value = res.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ reduceProductList.value = productList.value
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const submit = async () => {
|
|
|
let flag = await submitform2.value.validate();
|
|
|
if (flag){
|