qsh 3 weeks ago
parent 32ebe58d07
commit 640c90b178
  1. 22
      src/views/Clue/Order/Comp/MallOrderList.vue

@ -106,6 +106,16 @@
>
取消登记
</el-button>
<el-button
type="primary"
class="mr-10px"
link
style="padding: 0; margin-left: 0"
v-hasPermi="['clue:order:add-product']"
@click="handleAddProduct(scope.row)"
>
添加产品
</el-button>
</template>
</el-table-column>
</el-table>
@ -161,6 +171,7 @@
<script setup name="ClueOrderList">
import { getSimpleFieldList } from '@/api/clue/orderField'
import * as SignApi from '@/api/clue/sign'
import { getSimpleProductList } from '@/api/mall/product'
import { getSimpleUserList as getUserOption, getAllUserList } from '@/api/system/user'
import DialogFeeback from './DialogFeeback.vue'
@ -309,6 +320,11 @@ async function getOptions() {
userOptions.value = await getUserOption()
allUserOptions.value = await getAllUserList()
getCurdSchemas()
//
getSimpleProductList().then((data) => {
prodOptions.value = data
})
}
const batchIds = ref([])
@ -393,6 +409,12 @@ function summaryMethod({ columns }) {
}
const expendRows = ref([])
const addProductDialog = ref()
const prodOptions = ref([])
function handleAddProduct(row) {
addProductDialog.value.open(row.signId, prodOptions.value)
}
</script>
<style lang="scss" scoped></style>

Loading…
Cancel
Save