|
@@ -812,7 +812,7 @@ let getSubList = (e: any = {}) => {
|
|
})
|
|
})
|
|
.finally(() => (loading.value = false))
|
|
.finally(() => (loading.value = false))
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+// 货物材质候选数据
|
|
const goodMaterialOption = ref([
|
|
const goodMaterialOption = ref([
|
|
'Cotton 棉',
|
|
'Cotton 棉',
|
|
'Iron 铁',
|
|
'Iron 铁',
|
|
@@ -829,6 +829,23 @@ const goodMaterialOption = ref([
|
|
'Rubber 橡胶',
|
|
'Rubber 橡胶',
|
|
'Stainless Steel 不锈钢',
|
|
'Stainless Steel 不锈钢',
|
|
])
|
|
])
|
|
|
|
+// 动态获取货物材质候选数据
|
|
|
|
+let getGoodMaterialOption = () => {
|
|
|
|
+ request
|
|
|
|
+ .post('/common/getWebsiteSubform', { id: '4791186000359651051' })
|
|
|
|
+ .then((resp: any) => {
|
|
|
|
+ // console.log(resp, 'res')
|
|
|
|
+ const res = resp.data.result || {}
|
|
|
|
+ if (Array.isArray(res.data) && res.data.length) {
|
|
|
|
+ console.log(res.data, 'res.data')
|
|
|
|
+ goodMaterialOption.value =
|
|
|
|
+ res.data[0].Website_Subform.map(
|
|
|
|
+ (i: any) => i.Website_Subform_Value,
|
|
|
|
+ ) || []
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+getGoodMaterialOption()
|
|
|
|
|
|
const addBulkProduct = () => {
|
|
const addBulkProduct = () => {
|
|
let temp = cloneDeep(newLineTemplate)
|
|
let temp = cloneDeep(newLineTemplate)
|